Best code examples for Android DownloadManager.Request class (android.app.DownloadManager.Request)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android DownloadManager.Request class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android DownloadManager.Request examples from Open Source projects
This code example shows how to use the following methods: enqueue, setDestinationInExternalPublicDir
44:	Request request = new Request(Uri.parse(url)); 
45:	request.setDestinationInExternalPublicDir( 
-
47:	getDownloadManager().enqueue(request); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setDescription, setDestinationInExternalPublicDir, setNotificationVisibility, setShowRunningNotification, setTitle
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
This code example shows how to use the following methods: setDescription, setDestinationInExternalPublicDir, setNotificationVisibility, setShowRunningNotification, setTitle
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
This code example shows how to use the following methods: setDescription, setDestinationInExternalPublicDir, setMimeType, setTitle
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
This code example shows how to use the following methods: setAllowedNetworkTypes, setDescription, setDestinationInExternalPublicDir, setVisibleInDownloadsUi
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
This code example shows how to use the following methods: allowScanningByMediaScanner, setDestinationInExternalPublicDir, setVisibleInDownloadsUi
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
This code example shows how to use the following methods: setDescription, setDestinationInExternalPublicDir, setTitle
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
This code example shows how to use the following methods: setAllowedNetworkTypes, setDescription, setDestinationInExternalPublicDir, setTitle
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
This code example shows how to use the following methods: setAllowedNetworkTypes, setDestinationInExternalPublicDir
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
This code example shows how to use the following methods: setDestinationUri, setNotificationVisibility
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
This code example shows how to use the following methods: setDestinationInExternalPublicDir
55:	Request request = new Request(uri); 
56:	request.setDestinationInExternalPublicDir(null, path); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setNotificationVisibility
100:	request.setNotificationVisibility(notification ? Request.VISIBILITY_VISIBLE : Request.VISIBILITY_HIDDEN); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: allowScanningByMediaScanner
19:	request.allowScanningByMediaScanner(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
113:	DownloadManager.Request request = new Request(uri); 
Full Snippet Info
3
CodeRank
This code example shows how to use the following methods:
56:	DownloadManager.Request request = new Request(uri); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
32:	Request request1 = new Request(Uri.parse(DownloadService.URL_MP3)); 
Full Snippet Info
4
CodeRank
Related Android DownloadManager.Request Questions & Answers:
See Code Examples for Android DownloadManager.Request Methods: