android-newbie wrote:
> 1.  How does surfaceCreated get called?  From SDK, it is called
> immediately after the surface is first created, but I still don't
> know
> who creates this surface?

Android does, as part of setting up the SurfaceView after your
onCreate() method returns.

> 2.  Why do we need to set it as SURFACE_TYPE_PUSH_BUFFERS?

SurfaceView has multiple roles (e.g., OpenGL). "Push buffers" is one
used by various things (camera, video playback) that allow low-level
code to write to the screen.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android 1.6 Programming Books: http://commonsware.com/books

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