Android Question Problem with SaveAs function

noeleon

Active Member
Licensed User
I ran into a problem running the example from

If you overwrite a bigger file by clicking its filename before clicking SAVE, the new data is written but the file is still the same size and old contents remain.

How to fix this?
 

josejad

Expert
Licensed User
Longtime User
Don't you get a new filename? Erel said if the file exists, the name will be changed

The file name will also be changed if there is an existing file with the same name.

 
Upvote 0

zed

Active Member
Licensed User
Don't you get a new filename? Erel said if the file exists, the name will be changed
Exact.
When I save a file with the same name, it offers me name(1).
If I select the file, it is overwritten and the new data in the file is correct.
 
Upvote 0

noeleon

Active Member
Licensed User
If I select the file, it is overwritten and the new data in the file is correct
I use SaveAs for backup but I recently noticed that the file keeps getting bigger even if the data saved is small.

Here's a screen recording showing the before and after of the overwritten file.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…