09-22-2010 11:56 AM
5.0 and higher will allow you to get access to the stream well it is being recorded.
Invoke framework uses RIM apps so the only thing you get access to is the resulting file.
BBM is a RIM developed app so they use non-public RIM APIs.
09-22-2010 12:14 PM
So, putting all togather we can say that it is not possible for a BB developer to develop an application for auto-detecting barcodes while the camera is on.
I think you agree to this.
p.s. So due to limited access to available apis by rim we have limited scope for research in this matter.
09-22-2010 12:59 PM
On newer OSs it should be possible, it's more of a version problem then limited APIs.
I am working on something else right now and don't have the time to try it out. I wouldn't be processing barcodes but I would try taking multiple snapshots one after another.
09-22-2010 07:47 PM - edited 09-22-2010 07:47 PM
I say snapshots because he says he said "Actually I have developed the solution for taking snapshots and decoding the barcode" and I interpreted what he was saying as "I take a picture but I don't want the camera to go away unless I say so".
I played around with the CameraDemo example project that comes with 5.0 and higher, in the takePicture function I changed it so that whenever the function is called it adds the snapshot data to a vector instead of opening a new screen. Works no problem. It does freeze while it takes the photo but change some encoding values around and it fixes that problem.
Yes it is true you can't get the preview image without capturing it, but I fail to see why capturing is a bad thing. You take a snapshot, see if it can be decoded, if not you remove all references to it and the VM takes care of the rest. You can do it nearly unnoticeable to the user if you use the correct encoding so it seems like a "continuous camera" and can exit when the barcode is decoded successfully.
As stated previously, now if only it was possible to do overlays on top of the preview.
09-23-2010 12:10 AM
Sigh, I have to agree with you on that. To me the real fault is the JSRs because they don't require you to implement all the types, just the classes and interfaces. They don't have to work.
09-23-2010 04:18 AM - edited 09-23-2010 04:18 AM
I'm probably being completely unnecessary here but is the OP aware that this capability is built in to OS 6.0?
Not the ability for an app to do this, but the ability of the phone to capture a barcode for you off the camera.
09-23-2010 08:28 AM
Actually I do want to take the preview and then decode it so there should not be any snapshot or photo capturing process.
End user keeps/moves the mobile phone on qrcode and the camera decodes the preview available there and if the code is successfully decoded then it goes to next screen. For android and iphone these type of applications available in market... You can refer them at following url
Overall the application should not execute in following manner::
1) start the camera
2) capture the image (it pauses camera)
3) decode the image
4) resume the camera
I have tried to see many applications available in market but execpt the BBM 5.0 I am not able to see above mentioned feature.
So I feel that it is not only difficult it seems almost impossible with BB
03-23-2011 03:08 AM
Just wanted to know if you were able to implement auto detection of barcode using continous camera? I am currently facing the same issue. Is there any way of implementing it on 5.0 or below??
I am aware that this feature is available on Blackberry 6.0 devices(9800,9670 and 9780). Will it work on devices that are basically 5.0 but upgradable to 6.0 as well or is there any Hardware limitation?