11-02-2009 02:00 PM - edited 11-02-2009 02:01 PM
I've succesfully developed apps for the iPhone and Android in which the camera preview is displayed inside the app and some graphics are drawn on top of the preview. Now I would like to port these apps to Blackberry and after doing some research I'm not clear whether it's possible to draw anything on top of the preview. The questions I have are:
1. Is it possible to access the preview and draw on top of that lines, shapes etc.?
2. If so, which is the lowest supported api version? I understand 4.6 supports camera preview but then the 5.0 beta says full implementation of JSR 135?
3. Which devices run with that api? I haven't bought a Blackberry yet, so before buying I'd like to make sure that it has what I need.
4. How do api updates work, do all BBs get updated to the 5.0 version or only a few selected, and does it also depend on the network provider?
5. Ideally, I'd like to have a hardware compass in the Blackberry, which BB has that or is there a phone in the pipeline with a hardware compass?
11-02-2009 05:24 PM
3. Only the CDMA Storm in the US has 5.0.
4. Updates are typically initiated by the user, either through the desktop or OTA where available.
5. No BB has a hardware compass, someone more in the know can say whether one is planned with one.
11-02-2009 07:43 PM
Some more answers:
1. With OS 5.0, this might be possible, because as I understand it with OS 5.0, you can have overlapping Fields. So if your overlap the ViewFinder with your transparent Bitmap, then draw on the Bitmap, it may well work. But I've never tried overlapping let alone overlapping a ViewFinder Field.
Pre OS 5.0, I think one option is to put a transparent Screen in front of the ViewFinder. But this takes focus away from the ViewFinder, and it might decide it is no longer on display and stop updating.
The only other Option pre OS 5.0 that I can think of is a direct update to the Screen's Graphic, for the screen containing the ViewFinder. This is possible, but I think it would get cleared each time the picture was refreshed, so unless you are continually updating this, I'm not sure it would work.
In summary, I don't know, it might be possible, especially in OS 5.0, but I am not aware of an easy way to do this.
Should be relatively easy to try these options in the Simulators.
2. Can't provide any additional information over what you already know,
3. 4.6 or later is any Device Bold or later (Bold, 8900 Curve, Tour, 8520 Curve, Flip, Storm, is that everything?). In addition, as I understand it, RIM is planning to release OS 5.0 for all devices Bold and later. Also as I understand it, Storm 2 and Bold 8700 will be released with OS 5.0.
4. Network providers do, in theory, need to release their version of OS 5.0 for their phones. BB's are updated at owner's discretion. Given OS 5.0 is a whole lot better than preceding OS's (in my opinion) I think there will be a reasonable amount of pressure on carriers to release it.
5. I believe that RIM might be considering it, but don't hold your breath. As already noted, none at present.
01-06-2010 10:28 PM - edited 01-06-2010 10:30 PM
I am also interested in question #1. Could someone point me to the right classes to look at to achieve this? Has anyone actually tried it and succeeded?
10-05-2010 08:16 PM
I have not tried 6.0 but I know it's not supported on 5.0 (it's there as a class but always returns null when requested from getControl).