Couldn't update a file in android app assets folder

android, android-file

Solution

I want to update a file in the assets folder

No, you cannot.

The assets folder is read-only, you cannot write or update any file present there.

Problem

I want to update a file in assets folder when the user click a button. my listener is a classic ``` OnClickListener myUpdateListener = new OnClickListener() { public void onClick(View v) { updateAllParams(); } }; ``` The new file is to an url in this form `http://sample.test/android/params.dtf` the file in assets folder is ``` params.dtf ``` But I don't know how to do replace this file with the new version on the site.

Original source