Index: trunk/26.VideoTest/default.properties =================================================================== --- trunk/26.VideoTest/default.properties (revision 93) +++ trunk/26.VideoTest/default.properties (revision 93) @@ -0,0 +1,13 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system use, +# "build.properties", and override values to adapt the script to your +# project structure. + +# Indicates whether an apk should be generated for each density. +split.density=false +# Project target. +target=android-7 Index: trunk/26.VideoTest/.classpath =================================================================== --- trunk/26.VideoTest/.classpath (revision 93) +++ trunk/26.VideoTest/.classpath (revision 93) @@ -0,0 +1,7 @@ + + + + + + + Index: trunk/26.VideoTest/.project =================================================================== --- trunk/26.VideoTest/.project (revision 93) +++ trunk/26.VideoTest/.project (revision 93) @@ -0,0 +1,33 @@ + + + 26.VideoTest + + + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + + Index: trunk/26.VideoTest/AndroidManifest.xml =================================================================== --- trunk/26.VideoTest/AndroidManifest.xml (revision 93) +++ trunk/26.VideoTest/AndroidManifest.xml (revision 93) @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + Index: trunk/26.VideoTest/src/soo/media/VideoTest.java =================================================================== --- trunk/26.VideoTest/src/soo/media/VideoTest.java (revision 93) +++ trunk/26.VideoTest/src/soo/media/VideoTest.java (revision 93) @@ -0,0 +1,25 @@ +package soo.media; + +import android.app.Activity; +import android.net.Uri; +import android.os.Bundle; +import android.widget.MediaController; +import android.widget.VideoView; + +public class VideoTest extends Activity { + /** Called when the activity is first created. */ + private static final String PATH="/sdcard/"; + private static final String URL="http://www.archive.org/download/Unexpect2001/Unexpect2001_512kb.mp4"; + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.main); + + VideoView vv = (VideoView)findViewById(R.id.videoView01); + MediaController mc = new MediaController(this); + Uri uri = Uri.parse("/sdcard/ttt.mp4"); + //Uri uri = Uri.parse(URL); + vv.setMediaController(mc); + vv.setVideoURI(uri); + } +} Index: trunk/26.VideoTest/res/values/strings.xml =================================================================== --- trunk/26.VideoTest/res/values/strings.xml (revision 93) +++ trunk/26.VideoTest/res/values/strings.xml (revision 93) @@ -0,0 +1,5 @@ + + + Hello World, VideoTest! + VideoTest + Index: trunk/26.VideoTest/res/layout/main.xml =================================================================== --- trunk/26.VideoTest/res/layout/main.xml (revision 93) +++ trunk/26.VideoTest/res/layout/main.xml (revision 93) @@ -0,0 +1,28 @@ + + + + + + + + + + + +