From 956311c6259820b71f3294380cfbce89ac658a93 Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Tue, 13 Jul 2010 16:27:45 -0700 Subject: [PATCH] NDK access to the Asset Manager Change-Id: Ibe380e352af98f953bfc2398b498a6ccb242bcec --- .../android-9/arch-arm/usr/include/android/native_activity.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ndk/platforms/android-9/arch-arm/usr/include/android/native_activity.h b/ndk/platforms/android-9/arch-arm/usr/include/android/native_activity.h index ea6f05fb..d4df05b9 100644 --- a/ndk/platforms/android-9/arch-arm/usr/include/android/native_activity.h +++ b/ndk/platforms/android-9/arch-arm/usr/include/android/native_activity.h @@ -23,6 +23,7 @@ #include +#include #include #include @@ -72,7 +73,7 @@ typedef struct ANativeActivity { * Path to this application's external (removable/mountable) data directory. */ const char* externalDataPath; - + /** * The platform's SDK version code. */ @@ -84,6 +85,12 @@ typedef struct ANativeActivity { * state. */ 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; /** -- 2.11.0