40 #ifndef GEOGRAM_BASIC_ANDROID_UTILS
41 #define GEOGRAM_BASIC_ANDROID_UTILS
46 #include <android/log.h>
58 namespace AndroidUtils {
107 android_app* app,
int nb_perms,
const char** perms
129 ANDROID_LOG_VERBOSE,
"GEOGRAM",
"DBG: %s", str
Numeric::int32 keycode_to_unicode(android_app *app, Numeric::int32 deviceId, Numeric::int32 keyCode, Numeric::int32 metaState)
Converts a keycode to a Unicode character.
void debug_show_event(AInputEvent *event)
Displays an android event in the android log in Debug mode, ignored in release mode.
std::string temp_folder(android_app *app)
Gets the path for temporary file.
void show_soft_keyboard(android_app *app)
Shows the software keyboard on the phone.
bool has_permission(android_app *app, const char *perm)
Tests whether a permission is granted.
void debug_log(const char *str)
Displays a message in the android log in Debug mode, ignored in Release mode.
void request_permissions(android_app *app, int nb_perms, const char **perms)
Request permissions.
void hide_soft_keyboard(android_app *app)
Hides the software keyboard on the phone.
A function to suppress unused parameters compilation warnings.
Common include file, providing basic definitions. Should be included before anything else by all head...
Global Vorpaline namespace.
void geo_argused(const T &)
Suppresses compiler warnings about unused parameters.
Types and functions for numbers manipulation.