Created
December 23, 2017 15:19
-
-
Save Velmm/3cee379685dc55a932a05984c947f656 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ResolveInfo launchable=adapter.getItem(position); | |
ActivityInfo activity=launchable.activityInfo; | |
ComponentName name=new ComponentName(activity.applicationInfo.packageName,activity.name); | |
email.addCategory(Intent.CATEGORY_LAUNCHER); | |
email.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | | |
Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); | |
email.setComponent(name); | |
startActivity(email); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment