Wednesday, April 11, 2012

Re: [android-developers] Re: ProgressBar Dialog and Back button crashes pp

If you are using a spinner styled dialog, why are you trying to update its progress with a total?
Why don't you have a total?  You are the one that controls that...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Apr 11, 2012 at 1:52 AM, deb-account <theedge456@free.fr> wrote:
On 11/04/12 09:31, Tom wrote:
I think I have a problem in my "final Handler handler = new Handler" -
method.

My progressbar declaration is :
progDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);

But the handler dismis the dialog only when:

               int total = msg.getData().getInt("total");
               progDialog.setProgress(total);
               if (total<= 0){
                        dismissDialog(0);
                   progThread.setState(ProgressbarThread.DONE);
               }

But I have no "total".
 
Do you mean total is null or msg is null ?
Did you try the debug mode ?


--
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
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
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
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment