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
String getRemainingTime(String? deadline) { | |
String toRet = ""; | |
int remSecs = secondsBetween(DateTime.now(), DateTime.parse(deadline!)); | |
if (remSecs < 0) { | |
isUrgent=true; | |
toRet = "Overdue by "; | |
remSecs = remSecs * -1; | |
} | |
int mdays = (remSecs / 86400).truncate(); |
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
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,WindowManager.LayoutParams.FLAG_SECURE); | |
//add this code in the oncreate of an activity before set content view |
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
googlemap.addMarker(new MarkerOptions() | |
.position(new LatLng( 65.07213,-2.109375)) | |
.title("This is my title") | |
.snippet("and snippet") | |
.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_ORANGE)));///This is orange color |
NewerOlder