diff --git a/src/com/upc/pbe/upcnews/MainActivity.java b/src/com/upc/pbe/upcnews/MainActivity.java index 06a184d..b69d6b7 100644 --- a/src/com/upc/pbe/upcnews/MainActivity.java +++ b/src/com/upc/pbe/upcnews/MainActivity.java @@ -57,9 +57,11 @@ public class MainActivity extends Activity implements OnClickListener { * * * - DownloadManager.Request request = new DownloadManager.Request(Uri.parse("http://revistes.upc.es/~imanol/PBE/sample_ep_128k-00001.ts")); - request.setDescription("Some descrition"); - request.setTitle("Some title"); + * + String pfile = "sample_ep_128k-00001.ts"; + DownloadManager.Request request = new DownloadManager.Request(Uri.parse("http://revistes.upc.es/~imanol/PBE/"+pfile)); + request.setDescription("SetDescprition"); + request.setTitle("SetTitle"); request.setDestinationInExternalPublicDir(Environment.getExternalStorageDirectory().toString(), "sample_ep_128k-00001.ts"); DownloadManager manager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE); manager.enqueue(request);