[android-developers] Re: Manually restarting an Activity

2008-08-27 Thread webmonkey
I know it is all software based in the emulator but to my surprise I saw an small increase in speed when using Canvas.drawBitmapMesh with FEATURE_OPENGL. But as I mentioned, I can do without so it is not a big problem. Thanks On Aug 27, 10:21 pm, hackbod <[EMAIL PROTECTED]> wrote: > I think you

[android-developers] Re: Manually restarting an Activity

2008-08-27 Thread hackbod
I think you have put the cart a little before the horse here. :) I wouldn't count on FEATURE_OPENGL speeding up your app... certainly, until you are running on actual hardware with graphics acceleration, you really can't know how much it will help. I would really suggest on doing anything at al

[android-developers] Re: Manually restarting an Activity

2008-08-27 Thread webmonkey
I want to switch OpenGL on and off in my activity, because there are moments that would really benefit from the acceleration, even if that means re-starting the activity (my app goes through the cycle pretty fast). But there are also moments where I can't use OpenGL because it does not support all

[android-developers] Re: Manually restarting an Activity

2008-08-27 Thread Justin (Google Employee)
You could have Activity A start Activity B and after starting B calling finish(). Then have B, perhaps as the result of a button press, start a new instance of A. Of course, finish() won't result in onSaveInstanceState being called, which I believe is when a configuration change (because naturally

[android-developers] Re: Manually restarting an Activity

2008-08-27 Thread Mark Murphy
> A configuration change as described in: > > http://code.google.com/android/reference/android/app/Activity.html#ConfigurationChanges > > "Unless you specify otherwise, a configuration change (such as a > change in screen orientation, language, input devices, etc) will cause > your current activit

[android-developers] Re: Manually restarting an Activity

2008-08-27 Thread webmonkey
A configuration change as described in: http://code.google.com/android/reference/android/app/Activity.html#ConfigurationChanges "Unless you specify otherwise, a configuration change (such as a change in screen orientation, language, input devices, etc) will cause your current activity to be dest

[android-developers] Re: Manually restarting an Activity

2008-08-27 Thread Mark Murphy
> Is there a way for an Activity to restart itself, so that you go > trough a similar cycle that you get when there is a configuration > change? U...not sure what you mean by "configuration change", but if your activity calls finish(), it will close up and exit the activity. At least in M5, i