Ok, thanks for the details.

It would of course be good if you found a proper solution, but for my 
immediate needs the restart solution works ok.

Kind Regards
Thomas

Den fredagen den 24:e januari 2014 kl. 17:41:23 UTC+1 skrev Ytai:
>
> The problem is that apparently the only way to register to the attach 
> events is via the manifest file (dynamic registration doesn't seem to work, 
> although it does for detach). You don't seem to be able to register a 
> service using this way, the intent just doesn't get passed.
>
> I need to study this further to see whether this understanding is even 
> correct, there might be something else going on here. But if that's really 
> the case, the "proper" fix would probably be along the lines of receiving 
> the intent in an activity of a broadcast listener and forwarding it to the 
> service.
>
>
> On Thu, Jan 23, 2014 at 1:22 PM, Thomas Hermansson 
> <[email protected]<javascript:>
> > wrote:
>
>> Den torsdagen den 23:e januari 2014 kl. 20:21:27 UTC+1 skrev Thomas 
>> Hermansson:
>>
>>>  1. Connection to IOIO seems only to be established if IOIO chip is 
>>>>> started befor the App. (My app is based on the IOIOService example).
>>>>>
>>>>
>>>> This is a known limitation of IOIOService, unrelated to this version. 
>>>> There's an open bug on that. I don't know how to fix it - it seems to be 
>>>> an 
>>>> Android limitation. Perhaps subscribing to the "connect" event by an 
>>>> activity or a broadcast receiver and passing the intent to the service is 
>>>> the right way to do it.
>>>>
>>>
>>> Is there any ugly workaround for this? I was thinking about having a 
>>> TimerTask which runs every 60 seconds and then have it "try to connect" 
>>> somehow if a connections is not up and running? I just tried this by 
>>> calling the IOIOService.helper.restart() without any success. :-) 
>>>
>>
>> Let me just rephrase this: It seems to work perfectly ok using a timer 
>> task this way. Even when the service is started at boot time it connects 
>> ok. (I read about someone  else who had problems with this.
>>
>> //Thomas
>>
>> -- 
>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/ioio-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to