How many SurfaceHolder objects can be created in one activity having one view?

by Latha Shivanna » Fri, 26 Feb 2010 18:44:41 GMT

Sponsored Links
 Hi All,

I need to have an app where i can play both video and audio using
mediaplayer APIs.
But my problem here is , for video . i have to use
"SURFACE_TYPE_PUSH_BUFFERS" and pass this to mp.setDisplay().


Where as, An audio file can not be played with

What is the best solution to achieve this?

Is it possible to have more than 2 SurfaceHolder objects can be
created in one activity having one view?(one for audio with no
"SURFACE_TYPE_PUSH_BUFFERS" and other one is for Video)

Please do advise.



Other Threads

1. Testing C2DM service on Android 2.2 emulator

Hi guys,

I am playing around with C2DM service. What I am concerned about is
that I cannot test my device-side application from Android 2.2
emulator. The application was built more or less according to doc, but when register
intent is sent from application, Logcat shows this:

Unable to start service Intent
{ (has extras) }: not

I also tried to run chrometophone and jumpnote applications and the
result is the same when registring device. Any ideas?

...main question probably - is it possible to test C2DM service from
Android emulator?

Thanks in advance!


2. Call Blocking through ndk or latest sdk

Hi ,

is it possible to block a  call through ndk in Android 2.1 and later
OS ,please refer to some materiel/code snippt to how to achieve that ?
or still it is impossible to do ?


3. How do I write for an application using

4. Failed to upload .apk on device

5. What unit is used by Toast offset?

6. SQLiteDatabase.update() super slow

7. Prevent Rotation/change of orientation in a certain tab/activity