diff options
author | David 'Digit' Turner <digit@google.com> | 2011-11-08 14:18:11 +0100 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2011-11-08 14:18:11 +0100 |
commit | dd00e734f335f13b4a9e24a27e280b6112d919a5 (patch) | |
tree | 89a206487c4addc1ddc49dab8abc5fb5c7b73e81 /native | |
parent | c4c13f970468286a19906a67a0dc81dbe4b81262 (diff) | |
download | frameworks_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.h | 9 |
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; |