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