Code example for ZipFile

Methods: getEntry, getInputStream

0
	} 
 
	// ½âÎöapk 
	private StringBuilder getApkConfig(File pathname) {
		try { 
			ZipFile zipFile = new ZipFile(pathname);
			ZipEntry zipEntry = zipFile.getEntry("AndroidManifest.xml");
			InputStream is = zipFile.getInputStream(zipEntry);
			return AXMLParser.parserAxml(is);
 
		} catch (Exception e) {
			e.printStackTrace();
		} 
		return null; 
	} 
	//		 
	// if(($targetsdk != 'null' && $targetsdk >= 4) || 
	// ($minsdk != 'null' && $minsdk >= 4)){ 
	// $smallScreens = ($smallScreens == 'null')?'true':$smallScreens; 
	// $normalScreens = ($normalScreens == 'null')?'true':$normalScreens; 
	// $largeScreens = ($largeScreens == 'null')?'true':$largeScreens;