I am trying to open an app when a push notification is received.
Code:
public class GCMIntentService extends GCMBaseIntentService { public GCMIn
PackageManager.getLaunchIntentForPackage can help you find the entry activity.
Intent launchIntent = context.getPackageManager().getLaunchIntentForPackage(context.getPackageName()); launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(launchIntent);