~brady.brenot/stellarium/android-port

« back to all changes in this revision

Viewing changes to src/StelLogger.cpp

  • Committer: Brady Brenot
  • Date: 2012-04-27 06:46:21 UTC
  • Revision ID: brady@brenot.ca-20120427064621-q3av067052jb6x19
- get external storage location from Java, rather than hardcoding it
- treat external storage as the 'user directory'; result: places the log.txt on external storage by default. This way it's readable without root.

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
#elif defined Q_OS_LINUX || defined ANDROID
110
110
 
111
111
#ifdef ANDROID
112
 
        writeLog("Android"); //todo: JNI to get Android version # (when necessitas is fixed to allow JNI again)
 
112
        writeLog("Android"); //todo: JNI to get Android version #
113
113
#endif
114
114
        QFile procVersion("/proc/version");
115
115
        if(!procVersion.open(QIODevice::ReadOnly | QIODevice::Text))