¡@

Home 

2014/10/16 ¤W¤È 08:27:21

android Programming Glossary: videomanager

ANDROID: How do I download a video file to SD card?

http://stackoverflow.com/questions/3692252/android-how-do-i-download-a-video-file-to-sd-card

import android.app.Activity import android.os.Bundle import android.util.Log public class VideoManager extends Activity Called when the activity is first created. @Override public void onCreate Bundle savedInstanceState super.onCreate.. episode1.mp4 you can write here any link File file new File fileName long startTime System.currentTimeMillis Log.d VideoManager download begining Log.d VideoManager download url url Log.d VideoManager downloaded file name fileName Open a connection.. File file new File fileName long startTime System.currentTimeMillis Log.d VideoManager download begining Log.d VideoManager download url url Log.d VideoManager downloaded file name fileName Open a connection to that URL. URLConnection ucon url.openConnection..