Depends on how you use QTemporaryFile:
The following code should create a temporary file into your home phone
directory:
QTemporaryFile tempFile;
qDebug()<<tempFile.open();
qDebug()<<tempFile.fileName();
It should create
"/data/data/your.package.name/files/qt_temp.some_randome_chars" file
for you.
Also you can specify where to create the temporary file:
QTemporaryFile file(QDir::tempPath()+"/tempFile");
qDebug()<<file.open();
qDebug()<<file.fileName();
It should create
"/data/data/your.package.name/files/tempFile.some_randome_chars" file
for you.
If you want to create it to sdcard, replace QDir::tempPath() with
"/sdcard" and make sure your application has necessary permissions to
write on sdcard.
Cheers,
BogDan.
2011/2/28 Nakasya <nakas...@gmail.com>:
2011/3/2 Nakasya <nakas...@gmail.com>:
It will try to make temporary files to "/tmp" ONLY if you don't have
TMPDIR environment variable set. That variable is set here
http://qt.gitorious.org/~taipan/qt/android-lighthouse/blobs/android-stable/src/android/java/src/eu/licentia/necessitas/industrius/QtActivity.java#line124
and passed toC++ part which will set it check
http://qt.gitorious.org/~taipan/qt/android-lighthouse/blobs/android-stable/src/android/cpp/qtmain_android.cpp#line78
so, this can happen ONLY if you don't use java files which are shipped
with Necessitas SDK.
> Thank you.
> Nakasya
Cheers,
BogDan.