Monday, April 16, 2012

Android: new thread example

Simple example:

        new Thread() {
            @Override
            public void run() {
                try {
                    // do something useful
                } catch (Exception e) {
                   
                }
            }
        }.start();

Or use AsyncTask

No comments:

Post a Comment