Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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..."));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #share #location #android #programmatically
ADD COMMENT
Topic
Name
2+3 =