How Can I Save Temporary Pictures With Camera In Android?
Solution 1:
Third-party camera apps have no rights to write to your internal storage, including getCacheDir()
(which somehow createTempFile()
is using, though it's not clear to me exactly how).
I'm also very disappointed that I can't verify if pictures are actually taken, since I can't access /data/data/myapp folder (my GS3 is not rooted, and I still care about my warranty), therefore I'm not able to tell where the problem's very origin is.
First, you can, using adb run-as
. Second, this is another manifestation of the same problem: just as DDMS cannot access internal storage, neither can the third-party app.
Use getExternalCacheDir()
instead, to get a cache location on external storage, which a third-party camera app can try to write to. Note, though, that not all third-party camera apps will necessarily write to your requested location, due to bugs/limitations in those apps.
Post a Comment for "How Can I Save Temporary Pictures With Camera In Android?"