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. Can't Connect to a remote host from Emulator !!!


I am trying to setup a simple client/server connection, the server is
running on a remote host (Normal Java)  and the client is running on
my computer on the emulator, it works fine when I try to connect from
my machine, but I can't connect over a normal wi-fi internet
connection to the remote host, what could be the problem ???

Thanks in advance.


2. Market now giving out your phone number?

I've always left the phone number blank in my profile as I've never 
taken phone tech support calls and most all issues are easily resolved 
by email.  But the other day when getting my code for LVL the form 
insisted on a phone number.  Clicking on "why we ask for this" it says 
it is for Android to be able to contact me and the number not  given to 
third parties.  I believe a customer is a "third party."  Anyway I got a 
call early this morning from a customer.   When I asked how they got the 
number they said it came with the email.   I went to the console and 
tried leaving it blank but it won't take anything but a phone number so 
I've used a "movie" (555) prefix for the time being.

And the customer's question was that they bought the app and it didn't download. That's a Market issue anyway not the developers. I just suggested they try downloading again and if they still have a problem contact the Market. - Brian --

3. second column list view not properly aligned

4. Problem with interecepting outgoing calls on HTC Desire

5. Browser Crash on TI's AM37X board

6. Music Application crashes on Beagleboard-Xm-A2

7. Idea