Temp folder in android
<p>I am porting a c++ library code into android(which was initially written for linux).</p>

<p>The library is built and is used by a java application. </p>

<p>In the previous linux code, library used to create and update a log file in /tmp folder of the system...  But unfortunately, there is no such temp dir in android. </p>

<p>Seems I cannot use use applications cache to save the file due to a few reasons. </p>

<pre><code>1. User need to view the file after exiting the app

2. The library need to be reused by different applications in future. 

3. The log file is created by the native library(and not the java app)
</code></pre>

<p>(pls correct me if some/all of my understanding is wrong)</p>

<p>Also I found most of the directories are write protected in the default setting..    </p>

<p>How can i tackle the issue, without 'rooting' the os?
Pls help..  </p>
