Code example for PackageManager

Methods: getLaunchIntentForPackage

0
	} 
 
 
	public static Intent getAppIntent(Context c, String packageName) {
		PackageManager pm = c.getPackageManager();
		return pm.getLaunchIntentForPackage(packageName);
	} 
 
 
	private static PackageInfo getPackageInfo(Context c) {
		PackageManager manager = c.getPackageManager();
		try { 
			return manager.getPackageInfo(c.getPackageName(), 0);
		} catch (NameNotFoundException e) {
			Log.e("Couldn't find package information in PackageManager: " + e);
		} 
		return null; 
	} 
 
 
	public static String chooseValue(String firstChoice, String secondChoice) {