Skip to content

Instantly share code, notes, and snippets.

@brucetoo
Created August 4, 2015 09:31
Show Gist options
  • Save brucetoo/f6735077e4ef59cd2866 to your computer and use it in GitHub Desktop.
Save brucetoo/f6735077e4ef59cd2866 to your computer and use it in GitHub Desktop.
从一个应用打开另一个应用的简单办法
Intent intent = getActivity().getPackageManager().getLaunchIntentForPackage(AppConstants.CC_PACKAGE_NAME);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment