Hi, does anyone know how you can find the package name for a particular app already installed on your handset? They usually go like: com.example.prototype
(Where the folder prototype cotains the runnable files)
Trying to use the intent function to launch an app within an app.
Was told putting this code in the onclicklistener method for the button would allow this, yet to test it successfully. I reckon it works, just need to figure out package name of the app I wanna launch.
Intent i = new Intent(Intent.ACTION_MAIN);
i.addCategory(Intent.CATEGORY_LAUNCHER);
i.setPackage("com.otherapp.package");
startActivity(i);
Want to press a button, to launch the "com.otherapp.package"
Thanks!
(Where the folder prototype cotains the runnable files)
Trying to use the intent function to launch an app within an app.
Was told putting this code in the onclicklistener method for the button would allow this, yet to test it successfully. I reckon it works, just need to figure out package name of the app I wanna launch.
Intent i = new Intent(Intent.ACTION_MAIN);
i.addCategory(Intent.CATEGORY_LAUNCHER);
i.setPackage("com.otherapp.package");
startActivity(i);
Want to press a button, to launch the "com.otherapp.package"
Thanks!