Code example for PackageManager.NameNotFoundException

Methods: getMessage

0
	private PackageInfo getPackageInfo() {
		PackageManager manager = getPackageManager();
		try { 
			return manager.getPackageInfo(getPackageName(), 0);
		} catch (NameNotFoundException e) {
			Log.e("Couldn't find package information in PackageManager: " + e.getMessage());
		} 
		return null; 
	} 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE