SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void showWaContact(){
  2.         try{
  3.             String contactWaNumber = "6281363009995";
  4.             Intent sendIntent = new Intent("android.intent.action.MAIN");
  5.             sendIntent.setComponent(new ComponentName("com.whatsapp","com.whatsapp.Conversation"));
  6.             sendIntent.putExtra("jid", contactWaNumber+"@s.whatsapp.net");
  7.             startActivity(sendIntent);
  8.         }catch (Exception e){
  9.             startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=com.whatsapp")));
  10.         }
  11.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top