New to codename one. Help with extensions.

27 views
Skip to first unread message

gavriela...@uom.edu.gr

unread,
Mar 1, 2017, 7:49:03 AM3/1/17
to CodenameOne Discussions
Hello,

I am new to codename one. I am trying to make an application using eclipse and to startm I want to access my smartphone's sensors and send the data to my PC. 
I started using Sensors-Codenameone extension, but I am not really sure how to use it. Do I need to import somehow the whole file given in github (and if yes, how) or take parts of it?
In terms of taking some parts of it, I have already tried that but I have some errors (i.e.  The import com.codename1.impl.android cannot be resolved.)

IDE: Eclipse
macOS Sierra 10.12

Shai Almog

unread,
Mar 2, 2017, 1:05:43 AM3/2/17
to CodenameOne Discussions
Hi,
check out the explanation here: https://github.com/chen-fishbein/sensors-codenameone

Don't try to do this in the code if you are a beginner! Just go thru the New Project wizard and use the Extension Manager to install the extension. Then use refresh libs to update your path and use the lightbulb next to the class name to import the correct package. Sending an Android build should work seamlessly when you do it this way.
Reply all
Reply to author
Forward
0 new messages