JavascriptProva

lunedì 5 settembre 2016

Lanciare un'app del cellulare da programma.

Nel frattempo, ho imparato anche come far partire un'applicazione.
Ecco il codice:
                try{
                    Intent i=getApplicationContext().getPackageManager().getLaunchIntentForPackage("com.google.android.youtube");
                    getApplicationContext().startActivity(i);
                }catch(Exception e){}

Nessun commento:

Posta un commento