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

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

Android DownloadManager examples from Open Source projects
This code example shows how to use the following methods: getMimeTypeForDownloadedFile, getUriForDownloadedFile
69:	Uri uri = manager.getUriForDownloadedFile(id); 
-
75:	launchIntent.setDataAndType(uri, manager.getMimeTypeForDownloadedFile(id)); 
Full Snippet Info
7
CodeRank
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: getMimeTypeForDownloadedFile, getUriForDownloadedFile
69:	Uri uri = manager.getUriForDownloadedFile(id); 
-
75:	launchIntent.setDataAndType(uri, manager.getMimeTypeForDownloadedFile(id)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: enqueue
222:	manager.enqueue(request); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: enqueue
145:	mManager.enqueue(request); 
-
154:	mManager.enqueue(request); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: enqueue
29:	manager.enqueue(request); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getUriForDownloadedFile, query
140:	Uri uri = downloadManager.getUriForDownloadedFile(id); 
-
159:	Cursor c = downloadManager.query(query); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: query
84:	Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: enqueue
226:	return new Download(mManager.enqueue(request)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: enqueue
116:	return dm.enqueue(request); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getMimeTypeForDownloadedFile, getUriForDownloadedFile, query
49:	Cursor cursor = downloadMgr.query( query ); 
-
57:	downloadMgr.getUriForDownloadedFile( this.downloadId ), 
58:	downloadMgr.getMimeTypeForDownloadedFile( this.downloadId )); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: enqueue
78:	long downloadID = downloadManager.enqueue(request); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue
104:	manager.enqueue(request); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue
87:	manager.enqueue(request); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue
57:	long ref = traineddataFile.enqueue(request); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue
65:	downloadManager.enqueue(request); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue
58:	long id = this.dm.enqueue(request); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue
48:	downloadId = dMgr.enqueue(dmReq); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue
48:	downloadId = dMgr.enqueue(dmReq); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue
57:	activity.downloadId = downloadManager.enqueue(request); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue
33:	download_Manager.enqueue(request1); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue
103:	long id = dm.enqueue(req); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: enqueue
43:	id = dm.enqueue(req); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue
99:	long id = dm.enqueue(req); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: enqueue
39:	downloadManager.enqueue(request); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue
27:	manager.enqueue(request); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue
26:	long id = downloadManager.enqueue(request); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue
236:	manager.enqueue(request); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue
116:	return dm.enqueue(request); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue
28:	manager.enqueue(request); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue
116:	return dm.enqueue(request); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue
196:	manager.enqueue(request); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue
185:	return new Download(mManager.enqueue(request)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: query
152:	Cursor query = dl.query(new DownloadManager.Query() 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: query
47:	Cursor c = mManager.query(query); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getMimeTypeForDownloadedFile, getUriForDownloadedFile
69:	Uri uri = manager.getUriForDownloadedFile(id); 
-
75:	launchIntent.setDataAndType(uri, manager.getMimeTypeForDownloadedFile(id)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: query
74:	Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: query
49:	Cursor cursor = mgr.query(q); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: query
33:	Cursor c = dm.query(query); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: enqueue, query
45:	downloadManager.enqueue(request); 
-
76:	Cursor c = downloadManager.query(new Query()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: remove
84:	dm.remove(prefs.getLong("otadownloadid", -1)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: query
53:	Cursor cursor = dm.query(query); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: query, remove
157:	Cursor c = downloadManager.query(query); 
-
177:	downloadManager.remove(dmId); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: query, remove
49:	Cursor c = dm.query(q); 
-
54:	dm.remove(id); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: query
50:	Cursor cursor = downloadManager.query(query); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: query
27:	Cursor cursor = downloadManager.query( 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: remove
75:	manager.remove(reference); 
Full Snippet Info
4
CodeRank
Related Android DownloadManager Questions & Answers:
See Code Examples for Android DownloadManager Methods: