I often can't read QR code by com.codename1.ext.codescan.CodeScanner on Android and iOS.
Is there any other better codescanner library for codename1?
For exapmle, the attached QR code image(shown on screen) can be recognized on iOS and Android.
But the printed QRcode image(small size) can't be read both on iOS and Android.
I think codescanner can only read large QR code image but small.
On Android we also have the little monkey QR but it's only an extension on top of the existing library and specific to Android.
We have this: https://github.com/shannah/cn1-codescan-scandit
Which is portable but also relatively pricey. It's far more reliable and faster than other options.
Related
I am using this lib https://github.com/codenameone/cn1-codescan to scan QR codes in my application.
As I understand there is no functionality to change scanning/camera view right now in this lib
Currently, scanning view for Android it is just fullscreen camera view and for iOS smth like this http://zbar.sourceforge.net/iphone/userguide/scanning.html
Is there any way to add an overall image or change that camera view? Or is there any plans to add some LayredPane to the camera view in this lib?
This won't work for cn1-codescan since that library is implemented as an external native view. So we're effectively leaving Codename One to perform the scan. You can implement this natively within the library.
Alternatively you can build a library that uses a widget approach instead of moving to a separate activity/view like the current solution. If it uses a peer component (like the camera kit or the Google Maps cn1libs) then you can implement overlays in Codename One.
Notice that we only use zbar on iOS and on Android we use an activity which uses an external app to do the scanning. There's a 3rd party QR scanner (from Little Monkey) which embeds an Android implementation into the cn1lib. I'm not sure about the overlay implementation there.
I am currently messing around a bit with libvlc on android using the NDK.
Well, I understand how to use native C code in an android app.
Now I would like to use the libvlc library to make a simple player which would read data from a socket.
Is it possible to use libvlc at that level? The problem I see is when it comes to set a window handler for libvlc to draw the image on.
Has anyone experienced with this that could give me some feedback?
Thank you.
You might be interested in this - https://bitbucket.org/tewilove/nyan.tv-jni/src
Edit: Looks like the nyan.tv link doesn't exist anymore. A possibly more 'official' sample is here -> https://bitbucket.org/edwardcw/libvlc-android-sample
I'm building an application which I intend to deploy to iphone, android and blackberry. There's a unique characteristic I've noticed about my blackberry bold 9700, which uses an optical track pad for maneuvering around the screen. As an experiment, I deployed a simple phone gap application to my blackberry. I used the optical track pad to move a "small arrow cursor" around the screen to select and click on elements. When I compared my experimental app to some of the other native blackberry applications on my device, I noticed that none of them use this "small arrow cursor". Instead, sliding my thumb across the optical track pad will cause a "hi-light selector" to jump from one available link/button/field/image/list-item/tab etc... to another. This "hi-light selector" is much faster and user-friendly than the "small arrow cursor".
Now I need advice on the best technology to achieve the following:
I would like to write one set of code for an application to deploy to
iOS 4+ , android 2.2+ and Blackberry OS6+
On android and ios devices, you can simply scroll and touch buttons
for call to actions. On blackberry, I would like to replace the
"small arrow cursor" with the "hi-light selector".
I would like to use slide screen effects on android and ios devices.
On the blackberry, I would need a good substitute.
So my question is: Is there a practical way for a solo developer to achieve all the criteria above? If not, then what is the closest I can achieve to the criteria above? And what mobile javascript library would be best for the job[1]? Or do I really have to consider building with native technology (obj c for ios, java for android, java for bbos)?
I've only looked at sencha touch and didn't see anything relevant to the "hi-light selector".
I'd take a look at Appcelerator:
http://www.appcelerator.com/
... and ...
iUi:
http://www.iui-js.org/
i want to rotate bitmap in android . i don't want to use android api but want to use c code for image processing and fast response. can u tell me how to achieve this in c??
Thank you in advance
You could use OpenCV for Android by processing a rotation matrix in native code. But if you really just want to rotate an image, using native code for this would be over the top, unless you plan adding more complex transformations. A single transformation supposedly won't be processed faster in comparison to just rotating it in Java.
There is a nice solution for your needs: ImageMagick. You can compile C version of ImageMagick with NDK. There is also ImageMagick-Android project on github, but it doesn't look like a ready-to-use solution.
I'm planning to write a small app that should work on at least the popular smartphone devices, but would like (if possible) to write it only once for all platforms (using something like jQuery Mobile).
Is there any way to retrieve (to within at least street-level accuracy) the current GPS position of a mobile device, without writing custom code for each possible platform?
If you're programming natively, you're out of luck. Apple iOS and Android are very different beasts. Your best bet would be a browser application. The geolocation API is standardized: http://www.w3.org/TR/geolocation-API/