FileSystemStorage.delete()不会在所有android设备上删除捕获的文件吗? [英] FileSystemStorage.delete() doesn't delete captured files on ALL android devices?

查看:116
本文介绍了FileSystemStorage.delete()不会在所有android设备上删除捕获的文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据此 https://github.com/codenameone/codenameone/issues/411(2015年4月)是一种预期的行为,即捕获的图像未通过Android 4中的FileSystemStorage.delete()删除。



这就是我用4.4所获得的结果设备(CN1版本3.4)。这会在所有Android设备上发生吗?有没有变通办法可以以编程方式(即从我的应用中)实际删除这些捕获的照片?



NB:如上面链接中所述,它可以在模拟器中无缝运行。 p>

谢谢



干杯

解决方案

这是操作系统的限制。应用程序与系统服务隔离。可能可以使用低级摄像头API来做到这一点,而无需经过图库即可获取自己的照片,但这些照片当前尚未映射到Codename One。您也许可以使用本机接口来做到这一点。


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

解决方案

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.

这篇关于FileSystemStorage.delete()不会在所有android设备上删除捕获的文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆