Have you tried to put sleep like Thread.sleep(100) I am not certain but it
may crash due to that like an infinite loop though it's a seperate thread.
On Tuesday, April 14, 2015 at 4:36:49 AM UTC+3, Greg Gradwell wrote:
>
> I've got an app that was working perfectly fine in Kit Kat 4.4. After I
> upgraded to Lollipop 5.0.1/5.1, the app will now freeze after a few minutes
> of regular operation. No error in the logs, it just becomes unresponsive
> and I have to close it. Has anyone else experienced this? I've got it
> running on a Nexus 5 and Nexus 7.
>
> Now here's the weird part. My IOIO loop is normally empty. However, if I
> put a simply counter in the loop (see below), the app will run smoothly
> again.
>
> int i = 0;
>
> public void loop() throws ConnectionLostException, InterruptedException {
> i++;
> }
>
>
> So it appears I've found a workaround for now, but I'm curious as to
> what's causing the problem in the first place, as well as why this appears
> to solve it. Any insight would be appreciated, in case this "fix" stops
> working in the future. Thanks!
>
--
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.