Android Question how can I delete a file?

khosrwb

Active Member
Licensed User
Longtime User
hi
how can I delete a file?
for example : I will delete mMusic.mp3 file from Music dirctory

I use from this code but don't delete the my file:

B4X:
File.Delete("/mnt/sdcard/music", list2.Get(Position))
 

khosrwb

Active Member
Licensed User
Longtime User
thanks it's usefull
I use from this code and I can , but
B4X:
File.Delete("/mnt/sdcard/music", Value&".mp3")

after the use from this code , this problem occurred There are files on the memory card, but it can not run. I can find them but it can not play

I don't know what to do?
 
Upvote 0
Top