Is that really the minimum required, in the sense that anything you'd
remove would make the problem disappear? Also some things are missing, e.g.
where the response buffer being defined and why are you comfortable sharing
it across asynchronous calls.
On Mar 12, 2015 7:06 AM, "Vincent Nadon" <[email protected]>
wrote:

> Hi,
>
> Here is the trimmed down file that should illustrate the problem. I think
> it mainly comes from my threads (timers) and the IOIO management...
>
> Hope you guys can help me out :)
>
> See attached file!
>
> Le jeudi 12 mars 2015 05:28:13 UTC+1, Ytai a écrit :
>>
>> There's nothing special about the loop() method, it is mostly a
>> convenience feature. You may call IOIO APIs from any thread including the
>> UI thread (which includes all sorts of GUI listeners).
>> The code you posted on stackoverflow doesn't have anything that's related
>> to IOIO on it, so I don't think you'd get much help there. I recommend you
>> to make a copy of your problematic app, trim it down to the bare minimum
>> that illustrates the problem and then post it here.
>>
>> On Wed, Mar 11, 2015 at 11:48 AM, Vincent Nadon <[email protected]>
>> wrote:
>>
>>> I am having the following problem : http://stackoverflow.com/
>>> questions/28989176/android-app-stops-i2c-bluetooth-communication-ioio
>>> and I think it's because all my code to call the twi.WriteReadAsync is
>>> outside the loop() function.
>>>
>>> Le mercredi 11 mars 2015 18:55:55 UTC+1, Vincent Nadon a écrit :
>>>
>>>> How does the Android IOIO App loop() function work? Is there a way to
>>>> create functions in the Looper class which are called inside this loop()
>>>> according to a listener on a Button or a Spinner? This way it would
>>>> simplify my code since I need to send a lot of twi commands in the loop()
>>>> based on the user input in my Android UI Menu.
>>>>
>>>  --
>>> 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/d/optout.
>>>
>>
>>  --
> 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/d/optout.
>

-- 
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/d/optout.

Reply via email to