MediaPlayer and video problem

by Anton Okolelov » Sat, 02 Oct 2010 02:14:49 GMT

Sponsored Links
 I try to play video, but all I get is sound and black screen. I don't
understand what's wrong with the code. That video is 3gp, it works on
my phone if I run it using standard phone player (without my program).
I tryed VideoView, but no result...

Please help!

here's code:

package danilka.appl;

import android.view.SurfaceHolder;
import android.view.SurfaceView;

public class Answer implements Runnable {
        actiff mainActivity;
        MediaPlayer mp;

        public Answer(actiff mainActivity) {
                this.mainActivity = mainActivity;

        public void showAnswer(int resid)
        mp = MediaPlayer.create(mainActivity, R.raw.test);
        SurfaceView v = new SurfaceView(mainActivity);
        SurfaceHolder sh = v.getHolder();
        v.postDelayed(this, 2000);

        public void run() {


MediaPlayer and video problem

by Doug » Sat, 02 Oct 2010 15:22:37 GMT


You might want to keep trying with VideoView, because if you can't get
that to work, then it probably won't work at all.  The source for
VideoView will help you understand what to do if VideoView isn't good



Sponsored Links

MediaPlayer and video problem

by Indicator Veritatis » Sun, 03 Oct 2010 17:36:01 GMT

 One possible cause of what you describe is that the file has the right
codec for the sound, but not for the video. Verify what codec it has
for video and make sure that is supported on the phone. As describes , the video stream
may be either H.263 OR H.264. Which does your phone support?


Other Threads

1. what is the file framework/opt/

the file Framework.jar ( framework/opt/ is
got directly from android source code. it includes the java docs. what is
the function and the source codes?
is it the google private code and not opened?


2. Google checkout / Android Developer processing fee questions

I just asked this question over in the official Google checkout
support forum, but if checkout support is anything like Android or
Android Market support then I know I shouldn't expect a Google
employee to read the question for at least 72 hours.

here's the link

and here is the text

Question: Do android developers get charged the standard 2.00% + $0.20
processing fee per transaction?

I was looking at my Google checkout account tonight and saw something
new, on my payouts page it says,

Processing Fees
Base Fees   (since 02/26/2009)    2.00% + $0.20

It did not say that yesterday.

There is are no specific transactions listed when I click on the "Fees
history" link.

Every sale I have had has been charged the 30% transaction fee as set
out in the android developer agreement.

I sell 99 cent games, right now I only get 69 cents because of the
"transaction" fee, is there now a processing fee?  So I should expect
to receive $0.47?

$0.99 (Sale price)
-$0.30 (30% transaction fee)
-$0.22 ($0.20 + 2% processing fee) (???)
$0.47 (What I end up with in my pocket)

Has any other Android developer see this on their Google checkout
Can anyone give me any more information about whether or not I will be
charged for every sale?

The idea of only making 47 cents per sale does not make me very
happy.... but maybe I am misunderstanding this all, and I will be
charged 2% plus 20 cents for every lump sum withdrawal I try to make
from my Google checkout account?

Any help / thoughts are appreciated

3. Stuck with getting package name

4. Building apps for Java supported mobiles

5. Download of Android Eclipse plugin: 404 Not Found

6. top offset for an activity window

7. How to unsubscribe an droid-beginnersé”›