问题
I have developed a HTML5 webapp for Smartphones, initial roll out being blackberry. Part of its function is too take a photo, then return to a form for more info.
On OS7 (Curve type phone) the app functions perfectly. Take a photo, goes back to form, and displays a little thumbnail of the taken photo using base64. App already packaged and deployed using Bes / Bas
On OS6 (Bold 9700) the camera in the app does not auto shutdown after taking a photo, I have to click the back arrow, which take me back to the form, and the photo is still taken as expected.
I have ready in the quirks of Blackberry on Phonegap
"Application must have key injection permissions to close native Camera application after photo is taken."
I am assuming as this is working on OS7, I already have this. Is there a programmable way / workaround I can make sure the camera closes down after capturing a photo on the older OS or any expert tips to something I may have missed?
Thank you in advance for any replies
回答1:
Looks like this issue may be specific to OS6 when compiled with Phonegap, will try compilation on sources other than phonegap and see if it makes a difference.
回答2:
I have solved my same issue for os 6. After scanning of QR code, close all player and scanner connection.
You can use-
if (_scanner != null && _scanner.getPlayer() != null) {
_scanner.getPlayer().close();
}
This will definitely help you.
来源:https://stackoverflow.com/questions/12688419/blackberry-os6-camera-wont-shut-down-after-capture