The Developer Guide list this parameter in the Activity element of the manifest. So you should be able to set this for each activity of your app. http://developer.android.com/intl/fr/guide/topics/manifest/activity-element.html
Nivek On 14 août, 08:58, String <[email protected]> wrote: > Is there any way to accomplish this for a single activity, rather than > the whole app? The default orientation switch is fine for most of my > app, but for one activity, it makes a lot more sense to handle it > internally. > > String > > On Aug 7, 2:54 pm, Mark Murphy <[email protected]> wrote: > > > condor wrote: > > > Hello I developed an application and when I flip the phone in > > >landscapemode the application went inlandscapetoo. > > > > How can I make the application stay in portrait mode no matter the > > > phone orientation. > > >http://androidguys.com/?p=2891 > > > "To block Android from rotating your activity, all you need to do is add > > android:screenOrientation=”portrait” (or “landscape”, as you prefer) to > > your AndroidManifest.xml file" > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://twitter.com/commonsguy > > > Warescription: Three Android Books, Plus Updates, $35/Year --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

