Android: Pressing back button sends stop command to server
Android: ToJava can call functions on Java by using JNI Android: Plugins work Android: Added android specific files to VS2008 project, but they are excluded from compiling git-svn-id: http://mc-server.googlecode.com/svn/trunk@747 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
#if defined(ANDROID_NDK)
|
||||
#include <android/log.h>
|
||||
#include "ToJava.h"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -130,6 +131,7 @@ void cLog::Log(const char * a_Format, va_list argList)
|
||||
// Print to console:
|
||||
#if defined(ANDROID_NDK)
|
||||
__android_log_vprint(ANDROID_LOG_ERROR,"MCServer", a_Format, argList);
|
||||
//CallJavaFunction_Void_String(g_JavaThread, "AddToLog", Line );
|
||||
#else
|
||||
printf("%s", Line.c_str());
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user