diff options
author | Christopher Tate <ctate@google.com> | 2010-07-15 15:03:32 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-07-15 15:03:32 -0700 |
commit | 078ccbdbb98c118aa87cab2fef61ff90dd128358 (patch) | |
tree | 3653dfbba30678e12507274e394022123d1d3499 /core/java/android/app/NativeActivity.java | |
parent | 10f8baa46cc32f0024b3c65b1e6d0c01bf4ceefd (diff) | |
parent | 2c40582a6c3a5781b39d0504d5aa8934982989d2 (diff) | |
download | frameworks_base-078ccbdbb98c118aa87cab2fef61ff90dd128358.zip frameworks_base-078ccbdbb98c118aa87cab2fef61ff90dd128358.tar.gz frameworks_base-078ccbdbb98c118aa87cab2fef61ff90dd128358.tar.bz2 |
am 2c40582a: Merge "Add native C APIs for working with the Asset Manager" into gingerbread
Merge commit '2c40582a6c3a5781b39d0504d5aa8934982989d2' into gingerbread-plus-aosp
* commit '2c40582a6c3a5781b39d0504d5aa8934982989d2':
Add native C APIs for working with the Asset Manager
Diffstat (limited to 'core/java/android/app/NativeActivity.java')
-rw-r--r-- | core/java/android/app/NativeActivity.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/java/android/app/NativeActivity.java b/core/java/android/app/NativeActivity.java index ccc9ae3..3238b82 100644 --- a/core/java/android/app/NativeActivity.java +++ b/core/java/android/app/NativeActivity.java @@ -6,6 +6,7 @@ import android.content.Context; import android.content.pm.ActivityInfo; import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager; +import android.content.res.AssetManager; import android.graphics.PixelFormat; import android.os.Build; import android.os.Bundle; @@ -52,7 +53,8 @@ public class NativeActivity extends Activity implements SurfaceHolder.Callback2, private boolean mDestroyed; private native int loadNativeCode(String path, MessageQueue queue, - String internalDataPath, String externalDataPath, int sdkVersion); + String internalDataPath, String externalDataPath, int sdkVersion, + AssetManager assetMgr); private native void unloadNativeCode(int handle); private native void onStartNative(int handle); @@ -138,7 +140,7 @@ public class NativeActivity extends Activity implements SurfaceHolder.Callback2, mNativeHandle = loadNativeCode(path, Looper.myQueue(), getFilesDir().toString(), Environment.getExternalStorageAppFilesDirectory(ai.packageName).toString(), - Build.VERSION.SDK_INT); + Build.VERSION.SDK_INT, getAssets()); if (mNativeHandle == 0) { throw new IllegalArgumentException("Unable to load native library: " + path); |