Skip to content

Most visited

Recently visited

navigation

native_activity.h File Reference

native_activity.h File Reference

Data Structures

struct  ANativeActivity
 
struct  ANativeActivityCallbacks
 

Typedefs

typedef struct ANativeActivity ANativeActivity
 
typedef struct ANativeActivityCallbacks ANativeActivityCallbacks
 
typedef void ANativeActivity_createFunc(ANativeActivity *activity, void *savedState, size_t savedStateSize)
 

Enumerations

enum  { ANATIVEACTIVITY_SHOW_SOFT_INPUT_IMPLICIT = 0x0001, ANATIVEACTIVITY_SHOW_SOFT_INPUT_FORCED = 0x0002 }
 
enum  { ANATIVEACTIVITY_HIDE_SOFT_INPUT_IMPLICIT_ONLY = 0x0001, ANATIVEACTIVITY_HIDE_SOFT_INPUT_NOT_ALWAYS = 0x0002 }
 

Functions

void ANativeActivity_finish (ANativeActivity *activity)
 
void ANativeActivity_setWindowFormat (ANativeActivity *activity, int32_t format)
 
void ANativeActivity_setWindowFlags (ANativeActivity *activity, uint32_t addFlags, uint32_t removeFlags)
 
void ANativeActivity_showSoftInput (ANativeActivity *activity, uint32_t flags)
 
void ANativeActivity_hideSoftInput (ANativeActivity *activity, uint32_t flags)
 

Variables

ANativeActivity_createFunc ANativeActivity_onCreate
 
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (April 2018 — Developer Survey)