For some reason when I call my progress dialog with
Using java Syntax Highlighting
- mProgressDialog = ProgressDialog.show(main.this, "Please wait...", "Logging in...", true);
- handler = new Handler();
- new Thread() {
- public void run() {
- try{
- //do work
- } catch (Exception e) { }
- // Dismiss the Dialog
- handler.post(new Runnable(){public void run(){mProgressDialog.dismiss();}});
- }
- }.start();
Parsed in 0.032 seconds, using GeSHi 1.0.8.4
as shown in the progressdialog tutorial here at anddev, it starts to try and render my UI (list activity) then boots me out to the home screen, shows the progress dialog then returns to the UI and shows all of the list elements. I've tried moving the place where I set my list adapter around to be either before or after this, but nothing has yielded a different result. Has anyone run into/know of a reason why this could happen?
Thanks in advance for the help!



