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 <hack...@android.com> 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 > <jonas.peters...@xms.se>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 <topcod...@gmail.com > > > <mailto:topcod...@gmail.com>> 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 > hack...@android.com > > 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 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 -~----------~----~----~----~------~----~------~--~---