Code example for Reader

Methods: close

0
	 *            Reader 
	 */ 
	private static void closeReader(Reader reader) {
		if (reader != null) {
			try { 
				reader.close();
			} catch (Exception ignore) {
			} 
		} 
	} 
 
	private static String version = null;
 
	public static String getVersionCourante(Context context) {
		if (version == null) {
			PackageManager manager = context.getPackageManager();
			try { 
				PackageInfo info = manager.getPackageInfo(context.getPackageName(), 0);
				version = info.versionName;
			} catch (PackageManager.NameNotFoundException ignore) {
			}