Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 63 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. // String smsNumber = "9212197079"; //without '+'
  2.         try {
  3.             Intent sendIntent = new Intent();//"android.intent.action.MAIN");
  4.             //sendIntent.setComponent(new ComponentName("com.whatsapp", "com.whatsapp.Conversation"));
  5.             sendIntent.setAction(Intent.ACTION_SEND);
  6.             sendIntent.setType("text/plain");
  7.             sendIntent.putExtra(Intent.EXTRA_TEXT, arrStr1);
  8.                           // sendIntent.putStringArrayListExtra(Intent.EXTRA_TEXT,finalList);
  9.  
  10.            // sendIntent.putExtra("jid", smsNumber + "@s.whatsapp.net"); //phone number without "+" prefix
  11.             sendIntent.setPackage("com.whatsapp");
  12.             startActivity(sendIntent);
  13.         } catch(Exception e) {
  14.             Toast.makeText(this, "Error/n" + e.toString(), Toast.LENGTH_SHORT).show();
  15.         }
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