[android-developers] Re: Thread started inside Service is killed?

2012-03-22 Thread svl
at 3:44 PM, svl s.i.vladimi...@googlemail.com wrote: The question is - how i can make sure that the thread keeps running? You can't, not without any guarantee.  Another solution was to do it with a handler and run the read from serial port every second. Unfortunately that blocked the whole

[android-developers] Thread started inside Service is killed?

2012-03-18 Thread svl
Hi, I created a service to read information from the serial port. I start a thread that actually does all the reading from the serial port. It runs for about 10 minutes and then it just stops. No exceptions thrown, no errors on logcat. The question is - how i can make sure that the thread keeps