FileSystemStorage.delete() doesn't delete captured files on ALL android devices?

…衆ロ難τιáo~ 提交于 2019-12-23 02:28:10

问题


According to this https://github.com/codenameone/codenameone/issues/411 (April 2015) it is the expected behaviour that the captured image are not deleted via FileSystemStorage.delete() in Android 4.

That's what I get with my 4.4 device (CN1 version 3.4). Is it what will happen on every Android devices ? Is there a workaround to actually delete these captured photo programmaticaly (ie from my app) ?

NB : as reported in the link above it works seamlessly in the simulator.

Thank you,

Cheers


回答1:


That's an OS limitation. Apps are isolated from system services. It might be possible to do that with the low level camera API's and grab your own photo without going thru the gallery but those aren't currently mapped to Codename One. You might be able to do that with native interfaces.



来源:https://stackoverflow.com/questions/37952473/filesystemstorage-delete-doesnt-delete-captured-files-on-all-android-devices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!