Minetest  5.4.0
porting_android.cpp File Reference
#include "util/numeric.h"
#include "porting.h"
#include "porting_android.h"
#include "threading/thread.h"
#include "config.h"
#include "filesys.h"
#include "log.h"
#include <sstream>
#include <exception>
#include <cstdlib>
+ Include dependency graph for porting_android.cpp:

Namespaces

 porting
 

Functions

int main (int argc, char *argv[])
 
void android_main (android_app *app)
 
JNIEXPORT void JNICALL Java_net_minetest_minetest_GameActivity_putMessageBoxResult (JNIEnv *env, jclass thiz, jstring text)
 Handler for finished message box input Intentionally NOT in namespace porting ToDo: this doesn't work as expected, there's a workaround for it right now. More...
 
jclass porting::findClass (const std::string &classname)
 
void porting::initAndroid ()
 
void porting::cleanupAndroid ()
 
static std::string porting::javaStringToUTF8 (jstring js)
 
static std::string porting::getAndroidPath (jclass cls, jobject obj, jmethodID mt_getAbsPath, const char *getter)
 
void porting::initializePathsAndroid ()
 Initializes path_* variables for Android. More...
 
void porting::showInputDialog (const std::string &acceptButton, const std::string &hint, const std::string &current, int editType)
 show text input dialog in java More...
 
void porting::openURIAndroid (const std::string &url)
 
int porting::getInputDialogState ()
 WORKAROUND for not working callbacks from java -> c++ get current state of input dialog. More...
 
std::string porting::getInputDialogValue ()
 WORKAROUND for not working callbacks from java -> c++ get text in current input dialog. More...
 
float porting::getDisplayDensity ()
 
v2u32 porting::getDisplaySize ()
 

Variables

android_app * porting::app_global
 
JNIEnv * porting::jnienv
 
jclass porting::nativeActivity
 

Function Documentation

◆ android_main()

void android_main ( android_app *  app)

References porting::app_global, ARRLEN, porting::cleanupAndroid(), errorstream, infostream, main(), PROJECT_NAME, and Thread::setName().

+ Here is the call graph for this function:

◆ Java_net_minetest_minetest_GameActivity_putMessageBoxResult()

JNIEXPORT void JNICALL Java_net_minetest_minetest_GameActivity_putMessageBoxResult ( JNIEnv *  env,
jclass  thiz,
jstring  text 
)

Handler for finished message box input Intentionally NOT in namespace porting ToDo: this doesn't work as expected, there's a workaround for it right now.

References errorstream.

◆ main()