From f36d9919639b3d576bdaa2ba84b561b77fd9df6c Mon Sep 17 00:00:00 2001 From: Equip de Desenvolupadors de PBE Date: Tue, 11 Dec 2012 15:06:01 +0000 Subject: [PATCH] --- src/com/upc/pbe/upcnews/MainActivity.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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); -- libgit2 0.22.2