Commit f36d9919639b3d576bdaa2ba84b561b77fd9df6c

Authored by Imanol-Mikel Barba Sabariego
1 parent b10e6afa

--no commit message

src/com/upc/pbe/upcnews/MainActivity.java
@@ -57,9 +57,11 @@ public class MainActivity extends Activity implements OnClickListener { @@ -57,9 +57,11 @@ public class MainActivity extends Activity implements OnClickListener {
57 * 57 *
58 * 58 *
59 * 59 *
60 - DownloadManager.Request request = new DownloadManager.Request(Uri.parse("http://revistes.upc.es/~imanol/PBE/sample_ep_128k-00001.ts"));  
61 - request.setDescription("Some descrition");  
62 - request.setTitle("Some title"); 60 + *
  61 + String pfile = "sample_ep_128k-00001.ts";
  62 + DownloadManager.Request request = new DownloadManager.Request(Uri.parse("http://revistes.upc.es/~imanol/PBE/"+pfile));
  63 + request.setDescription("SetDescprition");
  64 + request.setTitle("SetTitle");
63 request.setDestinationInExternalPublicDir(Environment.getExternalStorageDirectory().toString(), "sample_ep_128k-00001.ts"); 65 request.setDestinationInExternalPublicDir(Environment.getExternalStorageDirectory().toString(), "sample_ep_128k-00001.ts");
64 DownloadManager manager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE); 66 DownloadManager manager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE);
65 manager.enqueue(request); 67 manager.enqueue(request);