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. Unable to compile a fully working AOSP android for Hero

There are two types of ROMs to the Hero, the ones with sense (coming
from HTC or customized by users, but with sense anyway) and laggy, and
the ones compiled from sources with missed capabilities (Bluetooth,
glitches, etc).

My question is, since we've got the sources for Hero kernel (http://, and the AOSP project, why noone did compile a
fully-working-without-sense-then-faster-1.5-AOSP Rom for Htc Hero?


why it is so difficult to compile a working 2.1 Rom if we have the
kernel, hence the drivers?



2. Complains of shrinking font sizes


I have an application on the Android Market called My Collection Pro.
I am getting complaints from my post Android 2.0 users (Droid, etc)
that when the close and re-open the app, the font keeps getting

I build my application in the 1.5 API to have the highest number of
supported phones.  If the users rotate the phone to cause the app to
restart it goes back to the original font.

I am unable to reproduce this in the emulator and on my G1.

Any ideas or suggestions?  My resource layouts are really straight-
forward and I leave font at system default (i.e., I don't specify


3. JVM tool interface support? in android vm - I want to register get/set hooking callback function at my class

4. Unable to reject the incoming call

5. 3

6. Getting Bitmap of all the Views in ViewFlipper?

7. Need Help for Storing the Values