Open Apk with another Apk [duplicated]

-2

I am working with Android / ios Applications. I would like to know if it is possible to run an application B using an Application A, with a button

    
asked by Manu Pralong 11.12.2018 в 15:06
source

1 answer

0

If possible. You must know the name of the other package and launch an intent to be able to launch it, for example, with the following code, you can launch the messenger of Facebook:

Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.facebook.orca");
//si el paquete no está instalado, launchIntent será null
if (launchIntent != null) { 
    startActivity(launchIntent);
}
    
answered by 11.12.2018 / 15:54
source