Created
June 11, 2014 19:32
-
-
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.
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
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