This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomVolleyRequestQueue { | |
private static CustomVolleyRequestQueue mInstance; | |
private static Context mCtx; | |
private RequestQueue mRequestQueue; | |
private CustomVolleyRequestQueue(Context context) { | |
mCtx = context; | |
mRequestQueue = getRequestQueue(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Local configuration file (sdk path, etc) | |
local.properties | |
# Intellij project files | |
*.iml | |
*.ipr | |
*.iws | |
.idea/ | |
# Built application files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun covertTimeToText() { | |
val dataDate = "2020-01-17T19:04:06.811Z" | |
val dateFormatter = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.getDefault()) | |
val timezoneName = TimeZone.getDefault().displayName | |
dateFormatter.timeZone = TimeZone.getTimeZone(timezoneName) | |
val localDate = dateFormatter.parse(dataDate) | |
val dateFormatter2 = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.getDefault()) |