ZFFramework
 
Loading...
Searching...
No Matches
ZFMainEntry_sys_Android.h
1#ifndef _ZFI_ZFMainEntry_sys_Android_h_
2#define _ZFI_ZFMainEntry_sys_Android_h_
3
4#include "ZFCore.h"
5#include "ZFImpl_sys_Android_ZF_impl.h"
6
7/*
8 * main entry steps:
9 * -# prepare your loader Activity
10 * -# load all so files in your Activity as static init step
11 * @code
12 * public class Loader extends Activity {
13 * static {
14 * System.loadLibrary("ZF_lib_name");
15 * }
16 * }
17 * @endcode
18 * in your loader activity, use ZFMainEntry.java to setup
19 */
20#if ZF_ENV_sys_Android
21
23
24// return android.app.Application
25extern ZFLIB_ZF_impl JNIGlobalRef ZFImpl_sys_Android_app(void);
26// return android.content.Context
27extern ZFLIB_ZF_impl JNIGlobalRef ZFImpl_sys_Android_appContext(void);
28// return android.content.res.AssetManager
29extern ZFLIB_ZF_impl JNIGlobalRef ZFImpl_sys_Android_assetManager(void);
30// return android.app.Activity, may be null if embeded to native UI
31extern ZFLIB_ZF_impl JNIGlobalRef ZFImpl_sys_Android_mainEntryActivity(void);
32
34#endif // #if ZF_ENV_sys_Android
35#endif // #ifndef _ZFI_ZFMainEntry_sys_Android_h_
36
header file for ZFCore module
#define ZFLIB_ZF_impl
used to export symbols
Definition ZFImpl_ZF_impl.h:15
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98