FileDocCategorySizeDatePackage
MediaPlayerDemo.javaAPI DocAndroid 1.5 API3011Wed May 06 22:41:08 BST 2009com.example.android.apis.media

MediaPlayerDemo

public class MediaPlayerDemo extends android.app.Activity

Fields Summary
private android.widget.Button
mlocalvideo
private android.widget.Button
mresourcesvideo
private android.widget.Button
mstreamvideo
private android.widget.Button
mlocalaudio
private android.widget.Button
mresourcesaudio
private android.widget.Button
mstreamaudio
private static final String
MEDIA
private static final int
LOCAL_AUDIO
private static final int
STREAM_AUDIO
private static final int
RESOURCES_AUDIO
private static final int
LOCAL_VIDEO
private static final int
STREAM_VIDEO
private static final int
RESOURCES_VIDEO
private android.view.View.OnClickListener
mLocalAudioListener
private android.view.View.OnClickListener
mResourcesAudioListener
private android.view.View.OnClickListener
mLocalVideoListener
private android.view.View.OnClickListener
mStreamVideoListener
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle icicle)


    
        
        // TODO Auto-generated method stub
        super.onCreate(icicle);
        setContentView(R.layout.mediaplayer_1);
        mlocalaudio = (Button) findViewById(R.id.localaudio);
        mlocalaudio.setOnClickListener(mLocalAudioListener);
        mresourcesaudio = (Button) findViewById(R.id.resourcesaudio);
        mresourcesaudio.setOnClickListener(mResourcesAudioListener);

        mlocalvideo = (Button) findViewById(R.id.localvideo);
        mlocalvideo.setOnClickListener(mLocalVideoListener);
        mstreamvideo = (Button) findViewById(R.id.streamvideo);
        mstreamvideo.setOnClickListener(mStreamVideoListener);