Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void callPP() {
- Context context = this.getApplicationContext();
- String packageName = "com.niklabs.pp";
- Intent intent = context.getPackageManager().getLaunchIntentForPackage(packageName);
- if (intent == null) {
- // Bring user to the market or let them choose an app?
- Toast.makeText(this.getApplicationContext(), "PerfectPlayer não foi encontrado", Toast.LENGTH_LONG);
- }
- intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
- context.startActivity(intent);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement