Edo Noordhuizen wrote: > Hi, > > I can't seem to find a way to prevent my application from switching to > landscape orientation when I tilt my G1. > I need to prevent my app from switching to landscape mode so my game > does not become unplayable! :-( > > Can anybody tell me how to prevent this??
android:screenOrientation="portrait" in your manifest will do it: http://developer.android.com/guide/topics/manifest/activity-element.html -- 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 Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

