Code example for AssetManager

Methods: openFd

	/// JNI Function used to fetch an APK Resource file descriptor. Called from native code 
	public static AssetFileDescriptor getAssetFileDescriptor(String assetName){
		AssetFileDescriptor fp = null;
			fp = assetManager.openFd(assetName);
		}catch(IOException ioe){
			/// Handle asset loading exception 
			Log.v("ParabolaEngine", "Asset file fetch exception: " + ioe.getMessage());
		return fp;
	/// JNI Function to send an SMS through the android device. Called from native code 
	public static void sendSMS(String number, String sms){
		SmsManager sm = SmsManager.getDefault();
		sm.sendTextMessage(number, null, sms, null, null);
		ContentValues values = new ContentValues();
		values.put("address", number);
		values.put("body", sms);
		contentResolver.insert(Uri.parse("content://sms/sent"), values);