Hi,
I want to launch an installed package from my Android application. I assume that it is possible using intents, but I didn't find a way of doing it. Does anyone have a link, where to find the information?
Thanks
Hi,
I want to launch an installed package from my Android application. I assume that it is possible using intents, but I didn't find a way of doing it. Does anyone have a link, where to find the information?
Thanks
If you know the data and the action the installed package react on, you simply should add these information to your intent instance before starting it.
If you have access to the AndroidManifest of the other app, you can see all needed information there.
I found the solution. In the manifest file of the application I found the package name: com.package.address and the name of the main activity which I want to launch: MainActivity The following code starts this application:
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setComponent(new ComponentName("com.package.address","com.package.address.MainActivity"));
startActivity(intent);