Merge "NDK access to the Asset Manager" into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
284e3ae11c
@@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
#include <jni.h>
|
#include <jni.h>
|
||||||
|
|
||||||
|
#include <android/asset_manager.h>
|
||||||
#include <android/input.h>
|
#include <android/input.h>
|
||||||
#include <android/native_window.h>
|
#include <android/native_window.h>
|
||||||
|
|
||||||
@@ -84,6 +85,12 @@ typedef struct ANativeActivity {
|
|||||||
* state.
|
* state.
|
||||||
*/
|
*/
|
||||||
void* instance;
|
void* instance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Pointer to the Asset Manager instance for the application. The application
|
||||||
|
* uses this to access binary assets bundled inside its own .apk file.
|
||||||
|
*/
|
||||||
|
AAssetManager* assetManager;
|
||||||
} ANativeActivity;
|
} ANativeActivity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user