first, tell the manifest that you want to handle rotation yourself

<activity android:name=".MainScreen" android:label="@string/app_name"
            android:configChanges="orientation" 
android:launchMode="singleTask"
            android:alwaysRetainTaskState="true">...

then handle the rotation yourself (or ignore it)

@Override
public void onConfigurationChanged(Configuration newConfig)
{...}


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