On 27 October 2010 23:09, 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?

android:screenOrientation

http://developer.android.com/guide/topics/manifest/activity-element.html

-- 
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