开发者

phonegap camera API restarts application on android

Using phonegap/se开发者_开发问答ncha on Android, start the camera or library, get a photo, return to application and phonegap restarts the application making the camera API useless. Has anyone developed a solution or work around for this? I would greatly appreciate any help/


I have encountered the same issue:

Try lowering your image resolution (i.e. from 8mb ->3mb).

Make sure there are no javascript errors in the code where you are processing the pic.

Are you trying to store the image in localStorage or write it to a WebSQL database? If so, i'd say dont save to localStorage, I think there is a limitation on the size. Try saving it as a BLOB in a WebSQL database.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜