#include <cel_android.h>
Public Types | |
| enum | FileMode |
Static Public Member Functions | |
| static void | setContext (JNIEnv *env, jobject context) |
| static void | setConsoleContext (void *context) |
| static JNIEnv * | getJNIEnv () |
| static jobject | getContext () |
| static bool | hasContext () |
| static bool | isConsoleApp () |
| static jstring | convertString (const String &s) |
| static String | convertString (jstring s) |
| static String | getDir (const String &name, FileMode mode) |
| static String | getCacheDir () |
| static String | getExternalCacheDir () |
| static String | getExternalFilesDir (const String &type) |
| static String | getFilesDir () |
| static jobject | getApplicationInfo () |
| static String | getStringField (jobject obj, const char *name) |
| static int | getIntField (jobject obj, const char *name) |
Android Helper functions.
Android defined file creation modes.
|
static |
Convert a String variable to JNI's jstring.
| s | String to convert. |
|
static |
Convert a JNI's jstring. to String.
| s | String to convert. |
|
static |
Wrapper for Context.getApplicationInfo().
|
static |
Wrapper for Context.getCacheDir().
|
static |
Get context set by setContext function.
Wrapper for Context.getDir(String,int).
|
static |
Wrapper for Context.getExternalCacheDir().
Wrapper for Context.getExternalFilesDir(String).
|
static |
Wrapper for Context.getFilesDir().
|
static |
Get an integer value from ApplicationInfo.
| obj | ApplicationInfo returned from getApplicationInfo function. |
| name | Name of a value. |
|
static |
Get thread specific JNIEnv.
|
static |
Get a string value from ApplicationInfo.
| obj | ApplicationInfo returned from getApplicationInfo function. |
| name | Name of a value. |
|
static |
Determine whether context has been set or not.
|
static |
Determine whether the app is console app or not.
|
static |
If the executable is a console app, the console context should be explicitly specified with the function.
| context | Currently, it should be NULL. |
|
static |
SDK sometimes requires certain context to execute Android specific operations. This function supplies SDK with the context to use in such situation.
| env | JNIEnv passed by Java environment. |
| context | A context of either the application or the activity. |