Hello
I've written an app that has several threads running in parallell. When the 
activity is paused, I notice my unit gets very sluggish and I realized that 
I haven't written any onPause and onResume methods and that it might be the 
culprit.
My threads were originally initialized to have knowledge of objects inside 
the IOIO class and are started from the setup().

I'm thinking I should implement a solution that is similar to the one 
provided in the IOIOTortureTest class with an .abort() method that kills 
the thread.
However, I'm uncertain if the setup() will have time to initialize after an 
onResume (or if it's even called that is) and maybe I need to rethink my 
design quite a bit.
On the wiki it says:

 This method will be called as soon as connection to the IOIO has been
         * established. Typically, this will include opening pins and modules 
using
         * the openXXX() methods of the {@link #ioio_} field.

Seems like this only happens when the USB is connected I guess, but I might ask 
anyway.
Is the setup method called every time the app resumes and the disconnected 
method when the method pauses or are these only when the USB is 
connected/disconnected?

Cheers
/M

-- 
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