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. Question about Launcher layout file


In the launcher layout file (launcher.xml), it uses
android:layout_width="match_parent" in both DragLayer and Workspace.
My question is why it uses 'match_parent' instead of 'wrap_content'?

In the launcher, the whole DragLayer should contains 5 cells, each
spans 1 phone screens. So shouldn't DragLayer/Worksapce should span 5
phone screens? But if that is the case, why the layout_width is
'match_parent', instead of wrap_content?


    <!-- The workspace contains 3 screens of cells -->

        <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
        <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
        <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
        <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
        <include android:id="@+id/cell5" layout="@layout/workspace_screen" />



2. Google Maps web service

Can anyone tell how to connect my web application with android mobile
application through Google Maps web service?
And explain the procedure to connect in details.


3. The button Uninstall is gray

4. [android-beginners] Project on Android

5. EditText OnClick problem

6. tutorial for dev android application using sqlite

7. How To add scrolling and zoom out and in effect in ImageView