Newbie here

39 views
Skip to first unread message

Woyce Batkins

unread,
Apr 20, 2021, 3:26:41 PM4/20/21
to CodenameOne Discussions

I have just discovered this platform and I have a couple of questions:
Let's say I am building a QR Code Scanner and I need to use the camera, I am not really sure how that will work with codename1, without having to use ffi of some sort.
Also, I can't seem to find some example of high quality applications that show the capability of this tool.Where can I download them if there are any?
Thanks

Shai Almog

unread,
Apr 20, 2021, 9:46:07 PM4/20/21
to CodenameOne Discussions
You can use one of the several QR code reading cn1libs we have https://www.codenameone.com/cn1libs.html
There's also a library for low level camera access but you won't need that for this purpose.

Notice the libs are open source so  you can look at the code, the way they work is through native interfaces which let you call into native code for functionality https://www.codenameone.com/how_di_i/how-do-i-access-native-device-functionality-invoke-native-interfaces.html

See the kitchen sink for basic overview of what can be done: https://play.google.com/store/apps/details?id=com.codename1.demos.kitchen
Notice that we didn't update the iOS version yet. 

Here are some apps I personally like (they're on iOS too).
There's a lot of others we just don't have the permission to share them, e.g. we have banks, hospitals etc. working with us but they prefer to keep information of their tools of choice private:

Woyce Batkins

unread,
Apr 21, 2021, 3:14:45 AM4/21/21
to codenameone...@googlegroups.com
Thanks

--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/leDPuVdr3JI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/bbaf277d-0c8a-4788-a950-9311e3b0dd94n%40googlegroups.com.

Woyce Batkins

unread,
Apr 21, 2021, 5:53:34 AM4/21/21
to codenameone...@googlegroups.com
I was watching some of the videos on the website and couldn't figure out which version of Java was being used. Do you support jdk11+ ?
Am I right that the netbeans plugin has a GUI-Designer and the intellij doesn't?
How is UI made in some of the more complex applications that you have built? WIth the designer or in Code?
Are there some opensource complex applications that I can look into to see how it all looks like?
Thanks.

Shai Almog

unread,
Apr 21, 2021, 9:41:36 PM4/21/21
to CodenameOne Discussions
We support Java 8 level of syntax but can run on either JDK 8 or JDK 11. Normally we don't support newer JDKs but with the maven support this might be alleviated. However, at this time only 8 and 11 are officially tested.
All IDEs and the maven build have access to the GUI builder.
In our case all of the UI is handcoded as we're more used to that. I suggest the kitchen sink as a reference since it's very simple to read: https://github.com/codenameone/KitchenSink/

There's also CodeRAD which is a high level abstraction on top of Codename One where you can get app templates like this: https://github.com/sergeyCodenameOne/UberEatsClone/

There are multiple other apps mostly in the online course.
Reply all
Reply to author
Forward
0 new messages