Advertisement
Iftyfr6

Untitled

Dec 17th, 2024
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.75 KB | Source Code | 0 0
  1.                 PackageManager packageManager = getPackageManager();
  2.                 launchIntent = packageManager.getLaunchIntentForPackage("com.softograph.apptoappreceiver");
  3.                 if (launchIntent != null) {
  4.                     String p_name = "Sanjib Barma";
  5.                     String p_phone = "01712797344";
  6.                     String choice = "Food lover";
  7.                     launchIntent.putExtra("p_name", p_name);
  8.                     launchIntent.putExtra("p_phone", p_phone);
  9.                     launchIntent.putExtra("choice", choice);
  10.                     startActivity(launchIntent);
  11.                 } else {
  12.                     Toast.makeText(MainActivity.this, "Package not found", Toast.LENGTH_SHORT).show();
  13.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement