MediaPlayer not running - just blank screen

by dillirao malipeddi » Thu, 05 Mar 2009 17:48:12 GMT

Sponsored Links
 id you get any error in ddms logcat ?
may be your player gives error while try to play

On Thu, Mar 5, 2009 at 3:14 PM, nithin <> wrote:

Dilli Rao. M


MediaPlayer not running - just blank screen

by Marco Nelissen » Fri, 06 Mar 2009 01:03:06 GMT

 hat won't work for a number of reasons:
- when you create the MediaPlayer and call start(), your display isn't
ready yet. You need to wait for the surfaceCreated() callback.
- you need to use the version of MediaPlayer.create() that takes a
SurfaceHolder parameter.
(this was all discussed on this mailing list a few weeks ago, you
might want to search the archives)

On Thu, Mar 5, 2009 at 1:44 AM, nithin <> wrote:


Sponsored Links

Other Threads

1. Support for newer kernel versions...

Can anyone tell me if there are plans to move the android development
to a newer Linux kernel? Are there plans to move to either 2.6.30 or
2.6.31. Is there a road map document anywhere. Sorry if these seem like
a lot of questions but really they are all the same.

Brad Figg


2. EditText for App.Widget

in which Android-SDK version their will be a EditText for the

3. 'Take a picture' intent on 1.5

4. Help : H324m compilation flags ( play from file & recording into file )

5. AChartEngine - a charting framework for Android applications

6. Android project using httpclient 鈥?gt; http.client (apache), post/get method

7. Install Android on Windows XP