#include <string>
namespace porting {
-/** java app **/
+// java app
extern android_app *app_global;
-/** java <-> c++ interaction interface **/
+// java <-> c++ interaction interface
extern JNIEnv *jnienv;
-/**
- * do initialization required on android only
- */
+// do initialization required on android only
void initAndroid();
+
void cleanupAndroid();
/**
*/
void initializePathsAndroid();
-/**
- * use java function to copy media from assets to external storage
- */
-void copyAssets();
-
/**
* show text input dialog in java
* @param acceptButton text to display on accept button
* @param editType type of texfield
* (1==multiline text input; 2==single line text input; 3=password field)
*/
-void showInputDialog(const std::string& acceptButton,
- const std::string& hint, const std::string& current, int editType);
+void showInputDialog(const std::string &acceptButton,
+ const std::string &hint, const std::string ¤t, int editType);
+
+void openURIAndroid(const std::string &url);
/**
* WORKAROUND for not working callbacks from java -> c++
float getDisplayDensity();
v2u32 getDisplaySize();
#endif
-
}