Set desired screen orientation for your activity in android manifest
file.

On Oct 28, 1:09 am, deki <dcec...@gmail.com> wrote:
> Is there a way to make sure onSurfaceCreated is called only once
> during startup.
>
> Currently in my app it gets called once with say 800x480 then it gets
> called a second time with 480x800. I guess this is probably due to a
> call to setRequestedOrientation in onCreate. Is there any way to make
> sure the app starts in a particular orientation, to prevent
> orientation changes, and to have onSurfaceCreated get called only once
> during start up?
>
> Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to