#include <android/native_activity.h>
#include <sigc++/signal.h>
+#include <msp/fs/path.h>
#include "mutex.h"
#include "thread.h"
private:
ANativeActivity *activity;
+ AAssetManager *asset_manager;
+ FS::Path int_data_path;
bool starting_up;
Mutex startup_mutex;
void wait_for_app_created();
void resume_startup();
+ JavaVM *get_java_vm() const;
+ AAssetManager *get_asset_manager() const { return asset_manager; }
+ const FS::Path &get_internal_data_path() const { return int_data_path; }
+
+ void set_window_flags(unsigned, unsigned);
+
private:
virtual void main();
static void native_window_destroyed(ANativeActivity *, ANativeWindow *);
static void input_queue_created(ANativeActivity *, AInputQueue *);
static void input_queue_destroyed(ANativeActivity *, AInputQueue *);
+ static void end_process(ANativeActivity *);
};
} // namespace Android