Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Android NDK logging (with SDL)

$
0
0
Hi everyone, I'm having some issues adapting my C++/SDL framework to use on Android. I'm using the NDK and installing directly onto my tablet via the command line and normally it works fine but sometimes of course it does nothing and it's a pain to debug. So I thought about adding some simple logging functions so at least I can get some basic idea of what happens. But it seems creating logs in Android is tricky also. So a couple of questions. 1) Is it correct that you can only use a predefined set of Android logs (i.e. an info, debug, verbose, etc.. log)? So it's impossible to make your own log-file just from your application and dump all output there to analyse? Or did I miss something? 2) Since I was using SDL, I tried using their log functions but it seems to dump direct to one of the main logs (containing basically everything) so it was not much help. SDL also has functions to generate internal files for game save data, etc.. So I hoped I could adapt this to make my own log except these files are private and cannot be read, at least not in the default mode. Is there any way around this that anyone knows, where I can download an internal private file to my laptop to analyse? 3) Is there an easier solution I've missed? Thanks in advance :-)

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>