I continued playing with this, and the more I look, the more I think that my problem might be that I try to show and dismiss the progressDialog from the handler. I tried to have some keypress initiate a ProgressDialog, and it works.
Going further in logging, I see that the thread finishes it's work before the handler catch the messages. More precisely, the handler catch both message after the thread has finished to work. And I think I have understood why... I do have a thread KivaWorker, but the run() method is basically empty. It sits there, doing nothing. Which means that when I do this.kivaWrkr.getPage(2) from my main ui, the fetching of the page is not done in a thread. I feel so stupid that I want to break my table with my forehead! So, as you suggested, I have to move each method I have implemented in the KivaWorker class to AsyncTasks, and fire them from there. And probably at that moment, I'll be able to get the behavior I was wanting. Thanks for baring with me. This is my first try at java, and android, and I feel it... On Apr 19, 7:25 pm, tripy <[email protected]> wrote: > > > 3) Here, you lost me.... I was thinking that I was calling them from the > > > activity!? > > > I mean use Activity.showDialog(int) and Activity.dismissDialog(int) instead > > of calling dialog.show() and dialog.dismiss(). > > I would be using a layout as a dialog, I'd understand. > But I'm not using this. Though I'll try, for the experiment. > I am using the android.app.ProgressDialog class. > http://developer.android.com/reference/android/app/ProgressDialog.html > > Both the static method ProgressDialog.show(Context context, > CharSequence title, CharSequence message, boolean indeterminate, > boolean cancelable) > and creating a new ProgressDialog()Context and calling .show() result > in the same. > > That's what I don't understand. > > > ------------------------------------------------------------------------------------------------- > > TreKing - Chicago transit tracking app for Android-powered > > deviceshttp://sites.google.com/site/rezmobileapps/treking > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Beginners" group. > > > NEW! Try asking and tagging your question on Stack Overflow > > athttp://stackoverflow.com/questions/tagged/android > > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group > > athttp://groups.google.com/group/android-beginners?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > > NEW! Try asking and tagging your question on Stack Overflow > athttp://stackoverflow.com/questions/tagged/android > > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group > athttp://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

