implement android import, update android project and build for release

This commit is contained in:
2018-09-30 13:42:17 +02:00
parent 413311e56e
commit 0ec8435357
9 changed files with 321 additions and 22 deletions

View File

@@ -3,6 +3,7 @@
#ifdef __ANDROID__
void displayKeyboard(android_app* mApplication, bool pShow);
void pick_file(android_app* mApplication, std::function<void(std::string)> callback);
#elif _WIN32
std::string win32_open_file();
#endif
@@ -55,7 +56,7 @@ void App::pick_image(std::function<void(std::string path)> callback)
callback(path);
});
#elif __ANDROID__
//displayKeyboard(and_app, false);
pick_file(and_app, callback);
#elif _WIN32
std::string path = win32_open_file();
if (!path.empty())