Code examples for DownloadManager.Request

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
57:	Request req = new DownloadManager.Request(uri); 
-
59:	req.setTitle("Demo"); 
60:	req.setDescription("android-ndk-r6-linux-x86.tar.bz2"); 
61:	req.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS,"android-ndk-r6-linux-x86.tar.bz2"); 
62:	req.setNotificationVisibility(0); 
63:	req.setShowRunningNotification(true); 
Full Snippet Info
6
CodeRank
50:	Request request = new DownloadManager.Request(downloadUri); 
51:	request.setTitle(fileName); 
52:	request.setDescription(url); 
53:	request.setMimeType(mimeType); 
54:	request.setDestinationInExternalPublicDir( "/Android/data/com.ssm.luaming/files/.Luaming/" + activity.accessToken + "/" + activity.packageName, activity.updateName); 
Full Snippet Info
6
CodeRank
57:	Request req = new DownloadManager.Request(uri); 
-
59:	req.setTitle("Demo"); 
60:	req.setDescription("android-ndk-r6-linux-x86.tar.bz2"); 
61:	req.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS,"android-ndk-r6-linux-x86.tar.bz2"); 
62:	req.setNotificationVisibility(0); 
63:	req.setShowRunningNotification(true); 
Full Snippet Info
6
CodeRank
59:	Request request = new Request(uri); 
60:	request.setAllowedNetworkTypes(DownloadManager.Request.NETWORK_MOBILE|DownloadManager.Request.NETWORK_WIFI); 
61:	request.setVisibleInDownloadsUi(true); 
-
63:	request.setDescription("电子书下载中"); 
64:	request.setDestinationInExternalPublicDir("ebook",uri.getLastPathSegment()); 
Full Snippet Info
6
CodeRank
44:	Request request = new Request(Uri.parse(url)); 
45:	request.setDestinationInExternalPublicDir( 
-
47:	getDownloadManager().enqueue(request); 
Full Snippet Info
6
CodeRank
51:	DownloadManager.Request request = new Request(uri); 
-
67:	request.setVisibleInDownloadsUi(false); 
-
74:	request.setDestinationInExternalPublicDir("BybyMusic", "testfile.mp3"); 
75:	request.allowScanningByMediaScanner(); 
Full Snippet Info
6
CodeRank
43:	DownloadManager.Request request = new Request(uri); 
-
47:	request.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, "test_downloadmanager.zip"); 
-
50:	request.setTitle("testdownload"); 
51:	request.setDescription("Test"); 
Full Snippet Info
6
CodeRank
140:	Request dr = new DownloadManager.Request(uri); 
141:	dr.setAllowedNetworkTypes(DownloadManager.Request.NETWORK_WIFI 
-
143:	dr.setTitle("Update facts"); 
144:	dr.setDescription("A updated version of the fact list for the Fact widget."); 
145:	dr.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, 
Full Snippet Info
5
CodeRank
141:	Request r = new Request(Uri.parse(url)); 
142:	r.setDestinationInExternalPublicDir("Ankabut", 
-
144:	r.setAllowedNetworkTypes(Request.NETWORK_WIFI | Request.NETWORK_MOBILE) 
Full Snippet Info
5
CodeRank
84:	Request request = new Request(Uri.parse(item.getUrl())); 
-
87:	request.setDestinationUri(Uri.parse("file://" + item.getPathToSave())); 
-
91:	request.setNotificationVisibility(Request.VISIBILITY_HIDDEN); 
Full Snippet Info
5
CodeRank
43:	Request request = new Request(uri); 
44:	request.setDestinationInExternalFilesDir(context, null, path); 
Full Snippet Info
4
CodeRank
100:	request.setNotificationVisibility(notification ? Request.VISIBILITY_VISIBLE : Request.VISIBILITY_HIDDEN); 
Full Snippet Info
4
CodeRank
19:	request.allowScanningByMediaScanner(); 
Full Snippet Info
4
CodeRank
113:	DownloadManager.Request request = new Request(uri); 
Full Snippet Info
3
CodeRank
56:	DownloadManager.Request request = new Request(uri); 
Full Snippet Info
4
CodeRank
32:	Request request1 = new Request(Uri.parse(DownloadService.URL_MP3)); 
Full Snippet Info
4
CodeRank