Can an app delete its own internal resources?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4398523/how-we-can-remove-a-file-from-the-assets-folder-at-runtime-in-android">how we can remove a file from the assets folder at runtime in android?</a>  </p>
</blockquote>



<p>I am trying to find a way to delete an internal resource after an app installs.  More specifically, I have a zip file included in the apk, that I unzip to the SD Card when the app is first run.  But then want to delete the now unneeded zip file (the purpose being to save the user internal phone memory).</p>

<p>I access the zip file with,</p>

<pre><code>Resources resources = this.getResources(); 
InputStream is = resources.openRawResource(R.raw.assets);
</code></pre>

<p>But am uncertain how to then delete the resource (if even possible).</p>

<p>I know one may ask why not simply install the app to SD Card at download.  But the app includes a screen widget, and installing apps to the SD Card and using a screen widget is problematic.</p>

<p>Thanks,
Matt</p>
