Hi,

In onCreate,  I am doing like this,

new Thread(new Runnable() {

        public void run() {
                handler.sendMessage(msg);
        }
}).start();

In Handler after doing all operations, I am updating the screen.

But its not working..

Nithin

On Mar 17, 4:02 pm, Kumar Bibek <coomar....@gmail.com> wrote:
> Handler is not meant to do this. Handler should be called from a
> background thread to update the UI.
>
> Thanks and Regards,
> Kumar Bibek
>
> On Mar 17, 3:03 pm, Nithin <nithin.war...@gmail.com> wrote:
>
> > Hi,
>
> > For showing loading screen, in the activity's main thread, I draw
> > loading screen and created a handler for doing other extensive
> > operations like database creations, parsing etc.
>
> > But unfortunate;y, for me, all is executing in main thread only. Seems
> > like Handler is not working as a seperate Thread. Any idea please..
>
> > Nithin

-- 
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

Reply via email to