Skip to main content

Android

The Android namespace provides access to essential Android platform features, including native activity management, lifecycle status checks, window and screen properties, application package and directory paths, and initialization of the native entry point via the onCreate function.

#include <system/TellusimAndroid.h>

Functions

Android activity.

ANativeActivity *getActivity()
bool isCreated()
bool isResumed()
bool isFocused()

Android window.

ANativeWindow *getWindow()
int32_t getWidth()
int32_t getHeight()
int32_t getFormat()

Application package name.

String getPackageName()

Application directories.

String getHomeDirectory()
String getFilesDirectory()
String getCacheDirectory()
String getCardDirectory()
String getObbDirectory()

void onCreate(ANativeActivity *activity, void *state, size_t size, Main *main)

Types

using Main = int32_t(int32_t argc, char **argv)