[android-developers] Re: Screen rotation and ProgressDialog

2012-08-27 Thread Sheharyar Naseer
I'm still unable to do it. I'm fairly new to Android Dev. Could you please 
write me a snippet on how to do this in AsyncTasks. Thankyou for your help.

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

[android-developers] Re: Screen rotation and ProgressDialog

2010-09-20 Thread Bret Foreman
Yeah, I read this first but was pretty confused. Now I've read it
again after the discussion here and it makes more sense. I've got it
working now.

On Sep 20, 1:05 pm, TreKing  wrote:
> On Mon, Sep 20, 2010 at 2:37 PM, Bret 
> Foremanbegin_of_the_skype_highlighting end_of_the_skype_highlightingwrote:
>
> > But a ProgressDialog object does not have a setId method. So how would I
> > identify the dialog?
>
> I think you should review 
> this:http://developer.android.com/guide/topics/ui/dialogs.html
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


Re: [android-developers] Re: Screen rotation and ProgressDialog

2010-09-20 Thread TreKing
On Mon, Sep 20, 2010 at 2:37 PM, Bret Foreman wrote:

> But a ProgressDialog object does not have a setId method. So how would I
> identify the dialog?
>

I think you should review this:
http://developer.android.com/guide/topics/ui/dialogs.html

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Screen rotation and ProgressDialog

2010-09-20 Thread Bret Foreman
But a ProgressDialog object does not have a setId method. So how would
I identify the dialog?

On Sep 20, 12:27 pm, TreKing  wrote:
> On Mon, Sep 20, 2010 at 2:18 PM, Bret 
> Foremanbegin_of_the_skype_highlighting end_of_the_skype_highlightingwrote:
>
> > But showDialog takes a resource ID
>
> It's not a resource ID. That id is to ID the dialog itself. It can be
> whatever you need it to be to ID that particular dialog.
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


Re: [android-developers] Re: Screen rotation and ProgressDialog

2010-09-20 Thread TreKing
On Mon, Sep 20, 2010 at 2:18 PM, Bret Foreman wrote:

> But showDialog takes a resource ID


It's not a resource ID. That id is to ID the dialog itself. It can be
whatever you need it to be to ID that particular dialog.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Screen rotation and ProgressDialog

2010-09-20 Thread Bret Foreman
But showDialog takes a resource ID and I'm creating my progress dialog
on the fly. Perhaps it's a better idea to create it statically?

On Sep 20, 12:07 pm, TreKing  wrote:
> On Mon, Sep 20, 2010 at 2:01 PM, Bret 
> Foremanbegin_of_the_skype_highlighting end_of_the_skype_highlightingwrote:
>
> > How should I handle an active ProgressDialog when the screen is rotated?
>
> If you use showDialog(), it gets managed for you.
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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