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().

        SurfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);

Where as, An audio file can not be played with
"SURFACE_TYPE_PUSH_BUFFERS" being On.

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.

thanks
Latha

--



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
http://code.google.com/android/c2dm/index.html doc, but when register
intent is sent from application, Logcat shows this:

Unable to start service Intent
{ act=com.google.android.c2dm.intent.REGISTER (has extras) }: not
found

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 Android.mk for an application using com.google.android.maps.jar

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