java - Android: Save two Bitmaps with same name in internal storage -
If I save a bitmap in the internal memory named "Picture .JPG" and in a few steps later I will use another bitmap Also, what is the "picture" Jpg? What is the second bitmap overwritten for the first time or does it have two bitmaps with the same name?
This will show you an error, I suggest you can use a dynamic file name or delete it before saving. In the case of dynamic, you can use something like this:
static int fCount = 0; file file = new file (environment. Gatestile store directory () + file. Separator + "/ Test "+ string.valuef (FQA +) +" .jpg ");
or
file file = new file (getExternalCacheDir ()), "Test.jpg"); If (file.exists ()) {boolean deleted = file.delete ();}
Comments
Post a Comment