Code example for DownloadManager.Request

Methods: setTitle

0
		Log.d("Downloading...", fileName);
		// TODO Make download notification point back at app - or allow 
		// cessation of download 
		DownloadManager dm = (DownloadManager) this
				.getSystemService(Context.DOWNLOAD_SERVICE);
		Request request = new Request(Uri.parse(e.getUrl()));
		request.setTitle(e.getTitle())
				.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED)
				.setDescription(e.getDescription())
				.setDestinationInExternalPublicDir( 
						Environment.DIRECTORY_PODCASTS, fileName);
		long enqueue = dm.enqueue(request);
		EpisodeDAO edao = new EpisodeDAO(this);
		edao.open();
		edao.updateEpisodeMp3(e.get_id(), Environment
				.getExternalStorageDirectory().getPath()
				+ "/" 
				+ Environment.DIRECTORY_PODCASTS + fileName);
		edao.close();
	}