Tuesday, June 14, 2011

Launching third party application through Intent

The snippet for launching a third party application through intent is,


Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setClassName("com.smartandroidians", "com.smartandroidians.NotificationWithAction");
startActivity(intent);


The first parameter in setClassName() is the package name and the second parameter is the launcher activity class name

No comments:

Post a Comment

Androidians