share location programmatically android code example
Example: 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..."));