Android Question delete bitmap file in file.DirAssets

rose2173

New Member
Hi
I have added some jpg files from IDE tab-->add files. now i have replace a new files and remove old file. but the old files not remove and shown all (old and new) jpg files, when type this code:
B4X:
Dim filelist As List=File.ListFiles(File.DirAssets)
    For i=0 To filelist.Size-1
        Dim filetype=filelist.Get(i)
        If (filetype.IndexOf(".jpg")<>-1) Then
            Msgbox(filetype,"")
                    End If
         Next
 

strat

Active Member
Licensed User
Longtime User
The files you saw are in your phone so you should delete these files manually. You can uninstall your app by clear all data, then reinstall it. There may be another ways to do it.
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
You cannot remove files from the Assets directory, it is read only.

If you are trying on the IDE then just remove them and replace them, whatever you place in the FILES directory will be added to the APK.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…