When I implemented a progress bar I had to place the processing I
needed within a thread. It looked something like the following:
setProgressBarIndeterminateVisibility(true);
myThread = new Thread(new Runnable() {
public void run() {
doProcessing();
setProgressBarIndeterminateVisibility(false);
}
});
myThread.start();
For full source http://code.google.com/p/android-passwordsafe/ and
look at CategoryList.java
If I understand this all correctly, the reason your progress bar
wasn't displayed was because your program was too busy doing the
processing. Thus the need for a thread.
Randy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---