Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

How to open WhatsApp using an Intent in your Android App

String url = "https://api.whatsapp.com/send?phone="+number;
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
Comment

PREVIOUS NEXT
Code Example
Java :: java last element in array 
Java :: rwegex java 
Java :: .tar to .ova 
Java :: how to change orientation of linearlayout in recyclerview android 
Java :: cast double to string java 
Java :: java initialize map with values in one line 
Java :: android studio print console 
Java :: how Resolve FragmentManager fm =getActivity().getSupportFragmentManager(); 
Java :: androidx.fragment.app.Fragment$InstantiationException 
Java :: go to activity android 
Java :: remoce last character froma java string 
Java :: java loop through arraylist 
Java :: show confirmation dialog java android 
Java :: how to get date android studio 
Java :: date from string java 
Java :: java iterable to list 
Java :: jpa repository delete method return value 
Java :: javafx textarea new line with shift+enter 
Java :: a java exception is an instance of ? 
Java :: javadoc links to url 
Java :: list java initialize 
Java :: merge sort java 
Java :: Unable to find bundled Java version. 
Java :: Java @Inherited 
Java :: what is the difference between sc.nextLine() and sc.next() in java 
Java :: read csv java android 
Java :: find if a number is in a 2d array java 
Java :: procedural programming Java code example 
Java :: iterator for array java 
Java :: how to truncate decimals in java 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =