Eclipse cannot find MediaMetadataRetriever class

by Shubham » Wed, 10 Dec 2008 03:40:55 GMT

Sponsored Links

I am using Eclipse Ganymede with Android SDK 1.0 r1 on a WinXP.  I am
trying to import but it seems that this class is
not part of the SDK, even though other classes
such as MediaPlayer are there.  Any idea how do i fix it?



Other Threads

1. play video error

Hi to all

             Can any one tell me how to play video in emulator... I
tried but its give error
Code is as below..

package com.example;
import android.os.Bundle;
import android.util.Log;
import android.widget.MediaController;
import android.widget.Toast;
import android.widget.VideoView;

public class VideoViewDemo extends Activity {

     * TODO: Set the path variable to a streaming video URL or a local
     * file path.
    private String path = "C:\Documents and Settings\nithin\My
    private VideoView mVideoView;

    public void onCreate(Bundle icicle) {
        mVideoView = (VideoView) findViewById(;

        if (path == "") {
            // Tell the user to provide a media file URL/path.
                    "Please edit VideoViewDemo Activity, and set path"
                            + " variable to your media file URL/path",

        } else {

             * Alternatively,for streaming media you can use
             * mVideoView.setVideoURI(Uri.parse(URLstring));
            mVideoView.setMediaController(new MediaController(this));


Thank You in advance
Nithin N V

2. how to hook into resize events?


I have a TextView whereby the text size is scaled to fill as much
space as possible (I'm basically doing this by repeatedly calling a
Paint#getTextBounds() of the text until it is larger than the
TextView#getWidth(), if there is an easier way I would love to hear
it). I want the text to scale to fit if the TextView changes size.

I'm just wondering what the best way to do this is? I can't figure out
exactly when in an Activity lifecycle we know for sure the layout is
setup - when I call TextView#getWidth() in the Activity#onResume(), it
is 0. From what I've read I should be looking at the View#onSizeChanged
() method.

I'm not sure how to use this however. Should I be subclassing the
TextView to add my own setOnSizeChangedListener where I can update my
various TextViews? Or is there another established pattern for this?



3. Best way to get data from /proc to Dalvik app

4. Question about 'hasFocus' field in HierarchyViewer

5. FILL_AND_STROKE not working for Rectangle

6. When will copyrighted material be stamped out of the market?

7. Installing the ADT plugin for Eclipse with only the command line.