IOIO doesn't start in remote service

55 views
Skip to first unread message

ckb

unread,
Mar 6, 2013, 11:48:14 PM3/6/13
to ioio-...@googlegroups.com
I'm hoping as soon as I post this I'll realize the stupid mistake I've made (as usual) but here is my problem. I want my app to start a remote service that stays active and continues talking to the IOIO even if the app is out of focus or closed. I'm familiar with the IOIOservice example and have played around with it to bind to it, change the blink rate, etc. But closing that app closes the service. 

When I try to run the IOIO in a remote service, it appears that the setup() function in the IOIOLooper is never called. The service starts and I can bind to it, but I never get a connection to the IOIO. Do I need to do something to the IOIO in the service's onCreate()/onStartCommand()? Is there an inherent limitation for IOIO remote services? Or am I just missing some other simple step? Thanks for any guidance.

Ytai Ben-Tsvi

unread,
Mar 7, 2013, 3:48:52 AM3/7/13
to ioio-...@googlegroups.com


On Mar 6, 2013 8:48 PM, "ckb" <christo...@gmail.com> wrote:
>
> I'm hoping as soon as I post this I'll realize the stupid mistake I've made (as usual) but here is my problem. I want my app to start a remote service that stays active and continues talking to the IOIO even if the app is out of focus or closed. I'm familiar with the IOIOservice example and have played around with it to bind to it, change the blink rate, etc. But closing that app closes the service. 

That's weird. It shouldn't. Only clicking the notification bar icon should do that.

>
> When I try to run the IOIO in a remote service, it appears that the setup() function in the IOIOLooper is never called. The service starts and I can bind to it, but I never get a connection to the IOIO. Do I need to do something to the IOIO in the service's onCreate()/onStartCommand()? Is there an inherent limitation for IOIO remote services? Or am I just missing some other simple step? Thanks for any guidance.

In what is it different than HelloIOIOService?

>
> --
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

Mariano Rodriguez

unread,
Apr 25, 2015, 7:55:36 PM4/25/15
to ioio-...@googlegroups.com
Add to the abstract class IOIOService

@Override
public IBinder onBind(Intent intent) {
start(intent);
return mBinder;
}
Reply all
Reply to author
Forward
0 new messages