You have several options: 1. Use IOIOService to have the communication with the IOIO going on in the background always. 2. Fork IOIOActivity to your own class, which triggers the start()/stop() events at different times in the application lifecycle. 3. Prevent the phone from sleeping while the app is running by using a WakeLock <http://developer.android.com/reference/android/os/PowerManager.WakeLock.html> (might have unpleasant side effects like draining the phone battery much faster).
On Wed, Mar 9, 2016 at 9:39 PM, Ilan Tal <[email protected]> wrote: > I need a bit of general advice. We need to measure a sample for 10 min. > The android screen turns off, which is no problem, but it also breaks the > connection to the ioio which is a problem. > Is there any well known way to tell the android NOT to break the > connection to the ioio board? If not then we need to prevent the screen > from going off. > Any suggestions? > > Thanks, > Ilan > > -- > 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 https://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 https://groups.google.com/group/ioio-users. For more options, visit https://groups.google.com/d/optout.
