ioio coding

41 views
Skip to first unread message

joe el khoury

unread,
Feb 10, 2015, 9:03:02 AM2/10/15
to ioio-...@googlegroups.com
Dear ytai,

I have a limited knowledges in android coding!! before using ioio, I used an arduino uno which communicate via bluetooth to an android app! but, it took some works! Is it possible to use such libraries with ioio??
for example:
import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.view.WindowManager;
import android.widget.LinearLayout;
import android.widget.TextView;

and how can a ioio be easier than arduino and any other microcontroller?
also, how can I add some intents to a ioio code?

thank you for your time.
waiting for your reply as soon as possible,
Best regards,

Joe,

Thanos Fisherman

unread,
Feb 10, 2015, 10:29:00 AM2/10/15
to ioio-...@googlegroups.com
Well if you achieved arduino communication with android via bluetooth then getting the hang of ioio must be pretty easy cause it already does all those things out of the box. You just replace your "extends Activity" class with "extends IOIOActivity" and override the createIOIOLooper() method from the IOIOActivity.

Also you can create a class e.g Looper that extends BaseIOIOLooper and there is the main logic with setup() and loop() methods just like arduino.
I don't know if there are any tutorials about this but check out the HelloIOIO example app

joe el khoury

unread,
Feb 10, 2015, 10:33:26 AM2/10/15
to ioio-...@googlegroups.com

Thank you so much dear thonas!! I still have 1 question!! How can I add intents to ioio?

Thanos Fisherman

unread,
Feb 10, 2015, 10:44:19 AM2/10/15
to ioio-...@googlegroups.com
That I don't really know. You have to wait for Ytai's response. But why you want to do that anyway?

joe el khoury

unread,
Feb 10, 2015, 10:48:59 AM2/10/15
to ioio-...@googlegroups.com

Thanos, For example adding internet then going a to specific page on the web

joe el khoury

unread,
Feb 10, 2015, 10:49:00 AM2/10/15
to ioio-...@googlegroups.com

joe el khoury

unread,
Feb 10, 2015, 10:52:17 AM2/10/15
to ioio-...@googlegroups.com

I am a mechanical engineering student, it is just like a hobby!! I used arduino in my past projects! But, I want to learn about ioio! I may use it for future projects!!

Thanos Fisherman

unread,
Feb 10, 2015, 10:59:33 AM2/10/15
to ioio-...@googlegroups.com
I don't think this has anything to do with ioio itself. You got an android app so you can use every intent available. If you want the user to be transfered to a web page then you can simply do the classic android thing somewhere in your code:

String url = "http://www.google.com";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);

ioio is a nice hobby thing for most of us :)

joe el khoury

unread,
Feb 10, 2015, 11:01:25 AM2/10/15
to ioio-...@googlegroups.com

Thanks dear!! Yeah!! It is a cool hobby!!! :)

Ytai Ben-Tsvi

unread,
Feb 10, 2015, 2:25:33 PM2/10/15
to ioio-...@googlegroups.com
IOIO Android apps are just normal Android apps, so you can do from them anything that you can do with Android, such as GUI, internal sensors, Internet, etc. Of it wasn't for that, there wouldn't be a big difference between using a IOIO and using an Arduino in terms of what you can do.
For anything that is not IOIO specific, please check http://developer.android.com
There is definitely some learning curve, especially if you don't have a strong Java background, but it's well worth it!

On Tue, Feb 10, 2015 at 8:01 AM, joe el khoury <elkh...@gmail.com> wrote:

Thanks dear!! Yeah!! It is a cool hobby!!! :)

--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ioio-users+...@googlegroups.com.
To post to this group, send email to ioio-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.

joe el khoury

unread,
Feb 10, 2015, 2:47:40 PM2/10/15
to ioio-...@googlegroups.com

Ytai!! This is nice!! I wanna try to make an app for ioio!! Thanks buddy!!

Reply all
Reply to author
Forward
0 new messages