Monday, November 30, 2009

[android-developers] UI window in Camera Preview application

I posted this last week, but not able to get any reply.

Let's say in my example I am working with SurfaceView for my
CameraSurfaceView. I have a few questions below, hope someone can
help me with the answers.

1. When this SurfaceView gets created (I assume via
final CameraSurfaceView cameraView = new CameraSurfaceView
(getApplicationContext()), this will result in a call createSurface()
in SurfaceFlinger with format, width and height. Am I correct?

2. Is this SurfaceView also my UI window if I want to draw anything?
I thought if I call setType(PUSH_BUFFER) on this surface, I won't be
able to do any drawing on this surface. Can someone please help me to
understand this?

Thanks in advance for your help,
an

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate