How to start an app the same way Android Launcher does (resume)

view story

http://stackoverflow.com – There are a lot of questions/answers about how to start an application from within your application in Android. But those solutions do not produce the same flow as if an icon was tapped in Android launcher. For example, I do this (this is used with notifications): intent = context.getPackageManager().getLaunchIntentForPackage("com.test.startup"); intent.setAction(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_LAUNCHER); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); Then (HowTos)