Thanks!

Please check the attached file from
android-2.1\samples\ApiDemos\src\com\example\android\apis\app folder
        /* Display a custom progress bar */
        Button progressButton = (Button) findViewById(R.id.progress_button);
        progressButton.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                showDialog(DIALOG_PROGRESS);
                mProgress = 0;
                mProgressDialog.setProgress(0);
                mProgressHandler.sendEmptyMessage(0);
            }
        });

The rest of related code in my original post.

On Sun, Apr 4, 2010 at 9:27 AM, ~ TreKing <[email protected]> wrote:

>  On Sat, Apr 3, 2010 at 9:39 PM, Kumar Bibek <[email protected]> wrote:
>
>> So, before orientation change and after orientation change, you need to
>> save the state of your dialog and then recreate it.
>>
>
> If you use showDialog(), which it looks like the OP is using, you don't
> have to save the dialog's state - this is handled by the Activity.
>
> OP - where are you setting up and calling your handler? My guess it's not
> being re-initialized or, if it is, whatever is posting messages to it isn't
> restarted.
>
>
> -------------------------------------------------------------------------------------------------
> TreKing - Chicago transit tracking app for Android-powered devices
> http://sites.google.com/site/rezmobileapps/treking
>
> --
>  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]<android-developers%[email protected]>
> 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 [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

To unsubscribe, reply using "remove me" as the subject.

Attachment: AlertDialogSamples.java
Description: Binary data

Reply via email to