Skip to content

Instantly share code, notes, and snippets.

@mndfcked
Created June 11, 2014 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mndfcked/dcf52eb3d45bccd73cf4 to your computer and use it in GitHub Desktop.
Save mndfcked/dcf52eb3d45bccd73cf4 to your computer and use it in GitHub Desktop.
Ein Beispielcode der die Stud.IP mobil App aus einer fremden App aufruft und die MainActivity anzeigt.
PackageManager pm = getPackageManager();
Intent appStartIntent = pm.getLaunchIntentForPackage("de.elanev.studip.android.app");
if (null != appStartIntent) {
startActivity(appStartIntent);
} else {
Log.e(TAG, "Error: Can't launch Stud.IP mobil.");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment