Try simulating a configuration change you don't handle in manifest,
your activity will be restarted with the standard save/restore state
mechanism.

On Sep 9, 9:02 am, Dianne Hackborn <[email protected]> wrote:
> Another possible one -- call startActivity() to start a new instance of your
> activity and then call finish() in the current instance.  Trying to
> propagate our current instance state would be very tricky though.
>
> On Tue, Sep 8, 2009 at 11:36 PM, Jonas Petersson 
> <[email protected]>wrote:
>
>
>
>
>
> > Dianne Hackborn wrote:
> > > Sorry there isn't really a way to do that right now.
>
> > > On Tue, Sep 8, 2009 at 10:58 PM, jonathan <[email protected]
> > > <mailto:[email protected]>> wrote:
>
> > >     Is there a way to restart an activity? The reason is that need to
> > >     change the theme dynamically, and the activity needs to be restarted
> > >     and redraw itself after the change.
>
> > Suggestion for a workaround:
>
> > How about that you have little splash screen or similar minimal activity
> > that starts up first and then start your main activity waiting för a
> > result? The returned result could indicate whether the main activity
> > needs to be restarted or not.
>
> >                        Best / Jonas
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~---------~--~----~------------~-------~--~----~
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