[android-beginners] Re: keeping an application in portrait mode

2009-01-12 Thread Josh Dobbs
Thanks. it actually does work fine on the g1, i just couldnt get it to work in the emulator. On Mon, Jan 12, 2009 at 11:45 AM, Bryan.paul wrote: > > I assume you added the screenOrientation to the application tag. > Unfortunately, this is not an attribute of the application tag: > > > http://cod

[android-beginners] Re: keeping an application in portrait mode

2009-01-12 Thread Bryan.paul
I assume you added the screenOrientation to the application tag. Unfortunately, this is not an attribute of the application tag: http://code.google.com/android/reference/android/R.styleable.html#AndroidManifestApplication It IS, however, an attribute of the activity tag: http://code.google.com/

[android-beginners] Re: keeping an application in portrait mode

2008-12-13 Thread Romain Guy
No, you just have to use a ScrollView in your layout code. On Sat, Dec 13, 2008 at 10:05 PM, Josh Dobbs wrote: > If i dont keep it in portrait mode it doesnt scroll automatically when in > landscape mode. Do i need to hadle scrolling in code? > > On Sat, Dec 13, 2008 at 12:43 PM, Romain Guy wro

[android-beginners] Re: keeping an application in portrait mode

2008-12-13 Thread Josh Dobbs
If i dont keep it in portrait mode it doesnt scroll automatically when in landscape mode. Do i need to hadle scrolling in code? On Sat, Dec 13, 2008 at 12:43 PM, Romain Guy wrote: > > Hi Josh, > > > I noticed while testing on it yeasterday prior to implementing portrait > only > > mode that when

[android-beginners] Re: keeping an application in portrait mode

2008-12-13 Thread Romain Guy
Hi Josh, > I noticed while testing on it yeasterday prior to implementing portrait only > mode that when i switched to landscape on the phone the whole application > would restart. Im hoping that keeping it in portrait only will fix that > issue however the app im working on is best suited for po

[android-beginners] Re: keeping an application in portrait mode

2008-12-13 Thread Josh Dobbs
I am using version 1.0_r1 of the sdk. I don't have a G1 but I my friend does and ill be able to test on it on monday. I noticed while testing on it yeasterday prior to implementing portrait only mode that when i switched to landscape on the phone the whole application would restart. Im hoping that

[android-beginners] Re: keeping an application in portrait mode

2008-12-13 Thread Mark Murphy
Josh Dobbs wrote: > When I run the RotationFourDemo in landscape and portrait the app > orientation changes orientation. That is totally wild. I have no explanation for the behavior you're seeing. I just now tested RotationFour on a G1, and the behavior matches my emulator -- the screen stays

[android-beginners] Re: keeping an application in portrait mode

2008-12-13 Thread Mark Murphy
Josh Dobbs wrote: > It doesnt seem to work. I am able to launch the emulator in landscape > however the app is also displayed in landscape even though the following > line is in AndroidManifest.xml > > android:screenOrientation="portrait" Visit: http://commonsware.com/Android/ Click on the V

[android-beginners] Re: keeping an application in portrait mode

2008-12-13 Thread Josh Dobbs
It doesnt seem to work. I am able to launch the emulator in landscape however the app is also displayed in landscape even though the following line is in AndroidManifest.xml android:screenOrientation="portrait" On Sat, Dec 13, 2008 at 9:43 AM, Josh Dobbs wrote: > nevermind i figured it out. >

[android-beginners] Re: keeping an application in portrait mode

2008-12-13 Thread Josh Dobbs
nevermind i figured it out. On Sat, Dec 13, 2008 at 9:40 AM, Josh Dobbs wrote: > Thanks Mark! > > Is there a way to run the emulator in landscape mode to test? > > On Sat, Dec 13, 2008 at 8:38 AM, Mark Murphy wrote: > >> >> Josh wrote: >> > How can I ensure that my application is always displa

[android-beginners] Re: keeping an application in portrait mode

2008-12-13 Thread Josh Dobbs
Thanks Mark! Is there a way to run the emulator in landscape mode to test? On Sat, Dec 13, 2008 at 8:38 AM, Mark Murphy wrote: > > Josh wrote: > > How can I ensure that my application is always displayed in portrait > > orientation? > > http://androidguys.com/?p=2891 > > That post covers the use

[android-beginners] Re: keeping an application in portrait mode

2008-12-13 Thread Mark Murphy
Josh wrote: > How can I ensure that my application is always displayed in portrait > orientation? http://androidguys.com/?p=2891 That post covers the use of android:screenOrientation="portrait" to force an application to stay in portrait orientation regardless of the state of the keyboard. --