Add workaround to see debug messages from native code in android service

This commit is contained in:
Gio 2016-12-22 00:33:34 +01:00 committed by Gioacchino Mazzurco
parent aca36a3e37
commit 06a1020724
3 changed files with 125 additions and 0 deletions

View file

@ -21,6 +21,7 @@
#ifdef __ANDROID__
# include <QtAndroidExtras>
# include "util/androiddebug.h"
#endif
#include "retroshare/rsinit.h"
@ -28,10 +29,15 @@
#include "api/ApiServerLocal.h"
#include "api/RsControlModule.h"
using namespace resource_api;
int main(int argc, char *argv[])
{
#ifdef __ANDROID__
AndroidStdIOCatcher dbg; (void) dbg;
#endif
QCoreApplication a(argc, argv);
ApiServer api;
RsControlModule ctrl_mod(argc, argv, api.getStateTokenServer(), &api, true);