刚刚下载SKMaps
了安卓SDK
和demo。演示应用程序因以下原因而崩溃:
04-28 09:51:12.891: E/Adreno-ES11(22284): <qglDrvAPI_glDeleteTextures:371>: GL_INVALID_VALUE
04-28 09:51:12.897: A/libc(22284): Fatal signal 11 (SIGSEGV) at 0x00000074 (code=1), thread 22322 (Thread-7847)
04-28 09:52:07.843: E/Adreno-ES11(22486): <qglDrvAPI_glDeleteTextures:371>: GL_INVALID_VALUE
04-28 09:52:07.853: A/libc(22486): Fatal signal 11 (SIGSEGV) at 0x00000074 (code=1), thread 22529 (Thread-7859)
开发环境:Eclipse、Android 4.4.2、Device MotoG。(所有与 Skobbler 相关的问题都应该有一个 skmaps 标签。我找不到任何这样的标签)。请注意,我在函数 prepareMapCreatorFile 中对 SplashActivity.java 进行了以下更改。我相信这是一个有效的改变。
//final String mapCreatorFolderPath = Environment.getExternalStorageDirectory().getAbsolutePath() + "/SKMaps";
//
final String mapCreatorFolderPath;
if (isExternalStorageWritable()) {
mapCreatorFolderPath = getExternalFilesDir(null).getAbsolutePath() + "/SKMaps";
} else {
mapCreatorFolderPath = getFilesDir().getAbsolutePath() + "/SKMaps";
}
/* Checks if external storage is available for read and write */
private boolean isExternalStorageWritable() {
String state = Environment.getExternalStorageState();
if (Environment.MEDIA_MOUNTED.equals(state)) {
return true;
}
return false;
}