Yes, window features can only be set in a root activity. 2008/12/2 Will Ryan <[EMAIL PROTECTED]>
> > I also experienced a similar problem. This was resolved when I made > sure that the root activity was calling > > setProgressBarIndeterminateVisibility(true); > > If you try to call this from Activities that have been loaded into > tabs for example (where the tabs are created as a separate Activity), > I found that it had no effect. > > Maybe this will resolve the problem. > > Will > > On Nov 17, 1:06 pm, "Guillaume Perrot" <[EMAIL PROTECTED]> > wrote: > > Your code is quite strange because when you perform UI operations, it has > to > > be on the main thread, so you normally have to use an Handler to post > > actions on the UI thread when you are in another thread. > > I am surprised it works. > > Plus I checked your CategoryList.java at google code, I didn't find any > line > > related to the progress bar. > > > > 2008/11/17 Randy McEoin <[EMAIL PROTECTED]> > > > > > > > > > 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 sourcehttp://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 android-developers@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---