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. Deleting a View from its Parent

Hi Everyone,

I am very new to Android development, but I am not new to develoment
of UIs.
I am trying to run this piece of code.
Basically, there is a GridView which contains a bunch of  ImageViews.
To each of these image views I have added this
onTouchListener as given below. However, the removeView statement
throws an exception - "Unsupported operation".
It is important for me to remove this view, because I need to attach
it to another layout.

Any help is really appreciated!

this._pieceTouchListener = new OnTouchListener(){
                        public boolean onTouch(View v, MotionEvent event) {
                                 if(view != null)
                                            case MotionEvent.ACTION_DOWN:
                                                try {

                                                        ViewGroup vg = 
                                                        //this line throws an 

                                                } catch (Exception exc) {


2. Alternative Market: Is it Possible?

Hi Developers,

We are in the works of an application that will emulate the current
Android Market, but make it better and more developer friendly.

We will have documentation about our Alternative Market and its
intents posted on here sometime tonight. It will include the benefits
of this type of Market along with the reason we feel it needs to be

It is being built on the theory that all developers should be free of
worries about uninstalls, refunds or any fees associated with charge-
backs amongst other things.

This application will also counteract the pirating associated with the
flaws of the current Android Marketplace.

It will cost users to use the application itself but not the
applications that are published in this market.

Now I know reading that last line above seems funny. It will be
explained in the documentation coming tonight.

I am sure there will be alot of questions pertaining to security of
your application and of ours. But no worries as we have something to
counteract that.

If you would like to know more about this Alternative Market before
our documentation is released please feel free to e-mail us at: to discuss more including our profit sharing
system we will be including.

Kind Regards,
The AppPool Team


3. Uncaught exception thrown by finalizer (will be discarded)

4. Problem with Embedded Widgets in Preferences

5. HOWTO: Install Android SDK and AVD Manager behind a Proxy/Firewall in Windows

6. Android Developer Day - Dallas - Saturday April 10

7. The program stopped unexpectedly when invoking the goToSleep method in PowerManager object