Note that there are good reasons for restarting activities on
orientation change and unless your application really requires to
handle the change itself (a good example would be the web browser or a
game), you should really keep it that way. This allows the system to
reload the resources that match the new configuration (so you can use
layout-land, drawable-land, etc.)

On Mon, Nov 3, 2008 at 3:59 PM, zl25drexel <[EMAIL PROTECTED]> wrote:
>
> yes
>
> add a couple of attributes in your manifest file
>        <activity  android:name=".blah"
> android:screenOrientation="portrait"
>        android:configChanges="orientation|keyboardHidden" />
>
> and then override a method
>    @Override
>    public void onConfigurationChanged(Configuration newConfig) {
>      //ignore orientation change
>      super.onConfigurationChanged(newConfig);
>    }
>
> to ignore any orientation change.
>
> On Nov 3, 4:54 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>> Hello every time i change the orientation on my emulator my activity
>> gets restated. is their any way to keep this from happing?
> >
>



-- 
Romain Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~
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