Prevent file deletion in Android
<p>My app will be writing some files to the storage which will be used by the app when in use (like a config). This config is time dependent and will be replaced by app when required.</p>

<p>Currently, I am writing this to the sdcard using Environment.getExternalStorageDirectory(). But this is visible when user used a file browser and could be deleted.</p>

<p>Is it possible for me to prevent the file deletion except by the application itself?</p>

<p>I tried using Environment.getDataDirectory()  but i do not have permission to write there. Is there an other way?</p>
