android - Deleting files from applications data folder -


i have tablet need execute service binary file continually receive data chip , store various data files in "/data/data/com.example.binary/received/" folder. have fileobserver set on folder perform action on files created , once close event given fileobserver trying delete file. have issue with. can delete files if in "/data/data/com.example.binary/" folder if in "/data/data/com.example.binary/received/" folder cant delete it. seems android permission issue. there way around this?.

so far have tried , failed by

1) trying execute "rm /data/data/com.example.binary/received/file1.xy"

2) trying file.delete()

fyi - have read , write permissions. , file handles file closed, that's when file's close event fired fileobserver.

i can delete files adb using "rm file1.xy"

and binary file our client , cannot change location creates output files.xy . . in received folder. suggestions?

ps: /data/data folder location installed apps stored in tablet.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -