therajanmaurya/WhatsAppUX

Interact Intent?

Opened this issue · 0 comments

I use the code to access contact:
Intent intent = new Intent("android.intent.action.MAIN");
intent.setAction(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_STREAM, Uri.parse(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS) + "/" + imageName));
intent.putExtra("jid", phoneNumber + "@s.whatsapp.net"); //phone number without "+" prefix!
intent.setPackage("com.whatsapp");

I need help to capture the submit button(com.whatsapp:id/send)