summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorLeith Bade <leith@leithalweapon.geek.nz>2014-11-07 23:46:28 +1100
committerLeith Bade <leith@leithalweapon.geek.nz>2014-11-07 23:46:28 +1100
commit7477d0c9dfcf4d7e354e05f79efe4b3bc63a2533 (patch)
treef524f6ec3d89dbabb3d77055583f68976ea8aa0e /android
parent4a35b831fc34a175ec0f202a4c53f13f065cff9d (diff)
downloadqtlocation-mapboxgl-7477d0c9dfcf4d7e354e05f79efe4b3bc63a2533.tar.gz
Finish android log backend
Diffstat (limited to 'android')
-rw-r--r--android/cpp/NativeMapView.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/android/cpp/NativeMapView.cpp b/android/cpp/NativeMapView.cpp
index 23badd2c6a..a7bf2aafac 100644
--- a/android/cpp/NativeMapView.cpp
+++ b/android/cpp/NativeMapView.cpp
@@ -1,10 +1,9 @@
-//#include <cstdio>
-
#include <memory>
#include <GLES2/gl2.h>
#include <mbgl/platform/platform.hpp>
+#include <mbgl/platform/android/log_android.hpp>
#include "log.h"
@@ -50,9 +49,7 @@ NativeMapView::NativeMapView(JNIEnv* env, jobject obj_,
return;
}
- // TODO replace all printfs in map code with android logging
- //freopen("/sdcard/stdout.txt", "w", stdout); // NOTE: can't use <cstdio> till NDK fix the stdout macro bug
- //freopen("/sdcard/stderr.txt", "w", stderr);
+ mbgl::Log::Set<mbgl::AndroidLogBackend>();
view = new MBGLView(this);
map = new mbgl::Map(*view);