summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2011-11-08 14:18:11 +0100
committerDavid 'Digit' Turner <digit@google.com>2011-11-08 14:18:11 +0100
commitdd00e734f335f13b4a9e24a27e280b6112d919a5 (patch)
tree89a206487c4addc1ddc49dab8abc5fb5c7b73e81 /native
parentc4c13f970468286a19906a67a0dc81dbe4b81262 (diff)
downloadframeworks_base-dd00e734f335f13b4a9e24a27e280b6112d919a5.zip
frameworks_base-dd00e734f335f13b4a9e24a27e280b6112d919a5.tar.gz
frameworks_base-dd00e734f335f13b4a9e24a27e280b6112d919a5.tar.bz2
NDK: ANativeActivity: Fix documentation for 'clazz' member.
As discussed on the android-ndk forum, it turns out that the member named 'clazz' is really a global reference to the NativeActivity instance. As such, it's really a handle to a VM object, not a VM class. Ideally, we would rename it to 'activity', but this cannot be done without breaking NDK source compatibility. Change-Id: I82ca1549b35346a3eacf9e84c4c836387fc883a6
Diffstat (limited to 'native')
-rw-r--r--native/include/android/native_activity.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/native/include/android/native_activity.h b/native/include/android/native_activity.h
index a361846..bc70f88 100644
--- a/native/include/android/native_activity.h
+++ b/native/include/android/native_activity.h
@@ -60,7 +60,14 @@ typedef struct ANativeActivity {
JNIEnv* env;
/**
- * The NativeActivity Java class.
+ * The NativeActivity object handle.
+ *
+ * IMPORTANT NOTE: This member is mis-named. It should really be named
+ * 'activity' instead of 'clazz', since it's a reference to the
+ * NativeActivity instance created by the system for you.
+ *
+ * We unfortunately cannot change this without breaking NDK
+ * source-compatibility.
*/
jobject clazz;