Answers for "share location in android programmatically"

0

share location in android programmatically

String uri = "https://www.google.com/maps/?q=" + latitude+ "," +longitude ;
    Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
    sharingIntent.setType("text/plain");
    sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT,  uri);
    startActivity(Intent.createChooser(sharingIntent, "Share in..."));
Posted by: Guest on June-19-2020

Code answers related to "share location in android programmatically"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language