diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-10-24 18:42:12 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-10-24 18:42:12 -0700 |
commit | 6ab84eeb0fad723d6e3e1e9fc63a4896a5905248 (patch) | |
tree | 19c80ad4bfbf3407395eb5800be27d2ba7685edb /native | |
parent | aa6110d84024776674131eb3b7a609499cf48810 (diff) | |
parent | c2f78020d3887539fc90230d96465e4b1dc84d8e (diff) | |
download | frameworks_base-6ab84eeb0fad723d6e3e1e9fc63a4896a5905248.zip frameworks_base-6ab84eeb0fad723d6e3e1e9fc63a4896a5905248.tar.gz frameworks_base-6ab84eeb0fad723d6e3e1e9fc63a4896a5905248.tar.bz2 |
am c2f78020: am 23656899: Merge "Fix issue #3126018: No way to specify NativeActivity\'s native method" into gingerbread
Merge commit 'c2f78020d3887539fc90230d96465e4b1dc84d8e'
* commit 'c2f78020d3887539fc90230d96465e4b1dc84d8e':
Fix issue #3126018: No way to specify NativeActivity's native method
Diffstat (limited to 'native')
-rw-r--r-- | native/include/android/native_activity.h | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/native/include/android/native_activity.h b/native/include/android/native_activity.h index a8f11c9..d89bc8b 100644 --- a/native/include/android/native_activity.h +++ b/native/include/android/native_activity.h @@ -223,18 +223,34 @@ typedef void ANativeActivity_createFunc(ANativeActivity* activity, /** * The name of the function that NativeInstance looks for when launching its - * native code. + * native code. This is the default function that is used, you can specify + * "android.app.func_name" string meta-data in your manifest to use a different + * function. */ extern ANativeActivity_createFunc ANativeActivity_onCreate; /** * Finish the given activity. Its finish() method will be called, causing it - * to be stopped and destroyed. + * to be stopped and destroyed. Note that this method can be called from + * *any* thread; it will send a message to the main thread of the process + * where the Java finish call will take place. */ void ANativeActivity_finish(ANativeActivity* activity); +/** + * Change the window format of the given activity. Calls getWindow().setFormat() + * of the given activity. Note that this method can be called from + * *any* thread; it will send a message to the main thread of the process + * where the Java finish call will take place. + */ void ANativeActivity_setWindowFormat(ANativeActivity* activity, int32_t format); +/** + * Change the window flags of the given activity. Calls getWindow().setFlags() + * of the given activity. Note that this method can be called from + * *any* thread; it will send a message to the main thread of the process + * where the Java finish call will take place. See window.h for flag constants. + */ void ANativeActivity_setWindowFlags(ANativeActivity* activity, uint32_t addFlags, uint32_t removeFlags); @@ -247,6 +263,12 @@ enum { ANATIVEACTIVITY_SHOW_SOFT_INPUT_FORCED = 0x0002, }; +/** + * Show the IME while in the given activity. Calls InputMethodManager.showSoftInput() + * for the given activity. Note that this method can be called from + * *any* thread; it will send a message to the main thread of the process + * where the Java finish call will take place. + */ void ANativeActivity_showSoftInput(ANativeActivity* activity, uint32_t flags); /** @@ -258,6 +280,12 @@ enum { ANATIVEACTIVITY_HIDE_SOFT_INPUT_NOT_ALWAYS = 0x0002, }; +/** + * Hide the IME while in the given activity. Calls InputMethodManager.hideSoftInput() + * for the given activity. Note that this method can be called from + * *any* thread; it will send a message to the main thread of the process + * where the Java finish call will take place. + */ void ANativeActivity_hideSoftInput(ANativeActivity* activity, uint32_t flags); #ifdef __cplusplus |