You're still just running in the UI thread.  You need to start another
thread somehow (there are several ways, that others can enumerate
better than I can).

On Oct 23, 4:39 am, MarcoCanali <[email protected]> wrote:
> Ok i Implements Runnable for put the service in Waith() i call
> Thread.sleep()  in run() method of class that Implements Runnable and
> The Problem is the Same ;
> The stone don't hit the two Bird ....
>
> On 22 Ott, 23:32, DanH <[email protected]> wrote:
>
> > Thread implements Runnable mainly as a convenience.  When you want to
> > start a thread you need a Runnable to execute.  You can supply a
> > separate Runnable, but, since you're already creating a Thread, why
> > not just make it a Runnable too, and kill two birds with one stone?
>
> > On Oct 22, 3:41 pm, Kostya Vasilyev <[email protected]> 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" <[email protected]> написал:
>
> > > > 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 <[email protected]> wrote:
>
> > > > On Fri, Oct 22, 2010 at 8:02 AM, MarcoCanali <[email protected]>
> > > wrote:
> > > > > The Service Work ...
> > > > On Fri, Oct 22, 2010 at 8:34 AM, Prakash Iyer <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to