Re: [android-porting] How to create a temporary file

2010-11-25 Thread Dianne Hackborn
You need to use the Java Context API to get the path to the part of your app data you care about, and can hand that to native code which can use it as the path in which it creates files. On Wed, Nov 24, 2010 at 11:34 PM, Chih-Wei cwhu...@linux.org.tw wrote: Hi, I want to create a temporary

[android-porting] How to create a temporary file

2010-11-24 Thread Chih-Wei
Hi, I want to create a temporary file in my jni code. I hope to use the standard C function FILE *tmpfile(void); However, it failed. I believe it is because the Android filesystem doesn't have the directory /tmp. Is there any reliable way to create a temporary file in Android? What's the