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 <[email protected]> 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<[email protected]>
> To unsubscribe from this group, send email to
> android-developers+**[email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/**group/android-developers?hl=en<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 [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

Reply via email to