Code example for AssetManager

Methods: list

0
	 
	/// List assets in a directory. APK resources only. This is called from native code 
	public static String[] getAssetList(String path){
		String[] list = null;
		try{	 
			list = assetManager.list(path);
		}catch(IOException ioe){
			/// Something went wrong with asset listing. Rare situation, but handle it. 
			Log.v("ParabolaEngine", "Asset listing exception: " + ioe.getMessage());
		} 
		return list;
	} 
 
	public static void closeActivity(){ 
		mGame.finish();
		android.os.Process.killProcess(android.os.Process.myPid());
	} 
	 
	/// JNI Function used to fetch an APK Resource file descriptor. Called from native code 
	public static AssetFileDescriptor getAssetFileDescriptor(String assetName){