Commit f36d9919639b3d576bdaa2ba84b561b77fd9df6c
1 parent
b10e6afa
--no commit message
Showing
1 changed file
with
5 additions
and
3 deletions
src/com/upc/pbe/upcnews/MainActivity.java
... | ... | @@ -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 | 65 | request.setDestinationInExternalPublicDir(Environment.getExternalStorageDirectory().toString(), "sample_ep_128k-00001.ts"); |
64 | 66 | DownloadManager manager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE); |
65 | 67 | manager.enqueue(request); | ... | ... |