static FILE* getTempFile() { char path[1024]; snprintf(path, 1023, "/sdcard/.%d.tmp", getpid()); FILE * fd = getTempFileFromPath(path); if (fd == NULL) { // anywhere else we can create a temp file? // snprintf(path, 1023, "/data/data/.%d.tmp", getpid()); // fd = getTempFileFromPath(path); } return fd; }
static FILE* getTempFile() { char path[1024]; snprintf(path, 1023, "/sdcard/.%d.tmp", getpid()); FILE * fd = getTempFileFromPath(path); if (fd == NULL) { } return fd; }