Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (localization != null) {
- SimpleDateFormat sdf = new SimpleDateFormat( "yyyy-MM-dd kk:mm:ss");
- String latitude = String.valueOf(localization.get(0).latitude);
- String longitude = String.valueOf(localization.get(0).longitude);
- String data = sdf.format(localization.get(0).dateTime);
- Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
- Uri.parse("geo:0,0?q=" + latitude + "," + longitude + " (" + data + ")"));
- startActivity(intent);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement