Before i use the Runnable interface and call in run method the "Thread.sleep()" for put the service in wait for a moment, my service controlls the appointment for all time the device is on , but the problem is the same my UI don't respond to any command !!
On 22 Ott, 22:41, Kostya Vasilyev <kmans...@gmail.com> wrote: > Prakash is right - the thread needs to be started. > > Now, btw, why does Thead implement Runnable in Java? Seems like a recipe for > confusion. > > -- > Kostya Vasilyev --http://kmansoft.wordpress.com > > 23.10.2010 0:33 пользователь "DanH" <danhi...@ieee.org> написал: > > > No, he's posting it as a Runnable to a Handler, it looks like. > > Yeah, there's a lot of that going around, and it causes a lot of > confusion. Stupid to use a Thread when a Runnable will do, but that's > the way it is in some examples on the net, and those examples keep > getting copied. > > And, of course, since it's not a separate thread (though the OP > probably thinks it is), the sleep call holds up the UI. Not a nice > thing to do. > > On Oct 22, 2:59 pm, TreKing <treking...@gmail.com> wrote: > > > > > On Fri, Oct 22, 2010 at 8:02 AM, MarcoCanali <marco.can...@gmail.com> > wrote: > > > The Service Work ... > > On Fri, Oct 22, 2010 at 8:34 AM, Prakash Iyer <thei...@gmail.com> wrote: > > > Don't you need to sta... > > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > > transit tracking app for Android-powered devices > > -- > You received this message because you are su... -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en