Hi All,

My case is: when the application starts, it will show a initialize
view, let me see welocome view, and also start a background thread to
load some content, after all the content loaded, and build a view,
then will set this new view.

Simple source:

calss Test extends Activity implements DoneListener
{
    public void onCreat(....)
    {
        setContentView(view);
        new Load(this).start();
    }
    public void done()
    {
        setContentView(otherview);
    }
}

class Load extends Thread
{
     ....
     public void run()
     {
         sleep(50000);
        listenr.done();
     }
}

interface DoneListener
{
   public void done();
}

when done method call setContentView, it throws me an exception,

how to implements this case?

Thanks!!!!
--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to