application crashes while putting setContentView in thread class in emulator

Posted by Maneesh on Stack Overflow See other posts from Stack Overflow or by Maneesh
Published on 2010-04-15T12:21:17Z Indexed on 2010/04/15 12:23 UTC
Read the original article Hit count: 311

Filed under:
|

when I put the setContentView in thread as below, it crashes while running in emulator.

new Thread(){ public void run() {

                      setContentView(R.layout.main_layout);

            }    

}.start();

© Stack Overflow or respective owner

Related posts about android

Related posts about android-emulator