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.
No, you cannot.
The assets folder is read-only, you cannot write or update any file present there.