It can also be done in AndroidManifest.xml there are a lot of existing discussions on this list answering this question.
On Thu, Nov 6, 2008 at 5:15 AM, dailyLife <[EMAIL PROTECTED]> wrote: > Thanks a lot. > > > [EMAIL PROTECTED] > 2008年11月6日 > > ----- Original Message ----- > From: songs > To: Android Developers > Sent: 2008-11-06, 16:20:45 > Subject: [android-developers] Re: How to set up as a straight vertical > display > You probably want to put the following in your activity's onCreate: > > setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); > > Cheers, > Steve > > On Nov 5, 11:28爌m, "dailyLife"<[EMAIL PROTECTED]> wrote: >> Hi,EveryOne. >> ?Today, I finally had to buy the G1, I have to write the software >> installed on the G1 above to see results, every time I open the keyboard, >> software, images are also displayed along with change. >> >> Who can tell me how to set up as a straight vertical display shows that >> even open the keyboard show the same way. >> > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

