Tuesday 5 July 2011

UI Thread

Only make UI Changes on the UI Thread NEVER BLOCK THE UI THREAD

Ways to get the UI Thread to do stuff:
* Activity.runOnUiThread(Runnable)
* View.post(Runnable)
* View.postDelayed(Runnable, long)

If you are doing Map stuff use:
* map.post(new Runnable() { } );

No comments:

Post a Comment