Search
 
SCRIPT & CODE EXAMPLE
 

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..."));
Comment

PREVIOUS NEXT
Code Example
Java :: return random boolean 
Java :: java enum to string 
Java :: java linkedlist poll 
Java :: can the method local inner class object access method local variables 
Java :: isWhiteSpace java 
Java :: java list of lists 
Java :: null java 
Java :: Java 8 merge 2 collections. 
Java :: hibernate onetone with mapsid 
Java :: fill array java 
Java :: djava days between two dates 
Java :: polymorphism in java 
Java :: java questions 
Java :: What would be the behavior if this() and super() used in a method? 
Java :: url string from url java 
Java :: why are string immutsble in java 
Java :: java and or precedence 
Java :: java finally block 
Java :: streams in java 
Java :: get string size on screen 
Java :: convert string into unicode java 
Java :: loops in java 
Java :: new date api in java 8 
Java :: throw exception in spring boot with message and geeter se 
Java :: Java Abstract Class and Method 
Java :: java string class 
Java :: String to java.sql.Date 
Java :: kingkaihockey 
Java :: java and python begineers mcq with answers 
Java :: plug and chug 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =