Eclipse cannot find MediaMetadataRetriever class

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


Sponsored Links
 Hi,

I am using Eclipse Ganymede with Android SDK 1.0 r1 on a WinXP.  I am
trying to import
android.media.MediaMetadataRetriever 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?

Thanks,
Shubham

--~--~---------~--~----~------------~-------~--~----~



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.app.Activity;
import android.graphics.PixelFormat;
import android.net.Uri;
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
media
     * file path.
     */
    private String path = "C:\Documents and Settings\nithin\My
Documents\Downloads\disney_256v_32a.mp4";
    private VideoView mVideoView;

    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.videoview);
        mVideoView = (VideoView) findViewById(R.id.surface_view);

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

        } else {

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

        }
    }
}


Thank You in advance
Nithin N V
--~--~---------~--~----~------------~-------~--~----~

2. how to hook into resize events?

Hi,

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?

cheers


--~--~---------~--~----~------------~-------~--~----~

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.