Code example for PackageManager.NameNotFoundException

Methods: printStackTrace

0
		try { 
			PackageInfo packageInfo = packageManager.getPackageInfo(
					getPackageName(), 0);
			version = packageInfo.versionName;
		} catch (NameNotFoundException e) {
			e.printStackTrace();
		} 
 
		return version;
	} 
 
	public String getDownloadFormat() {
		return PreferenceManager.getDefaultSharedPreferences(this).getString(
				"download_format", JamendoGet2Api.ENCODING_MP3); 
	} 
 
	public String getStreamEncoding() {
		// http://groups.google.com/group/android-developers/msg/c546760177b22197 
		// According to JBQ: ogg files are supported but not streamable 
		return JamendoGet2Api.ENCODING_MP3; 
	}