Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find DownloadManager's ContentProvider implementation

I've searched through android's open source code as much as I could and I haven't been able to find the implementation to the actual downloading via the DownloadManager in the 2.3 SDK. I have found the source for the DownloadManager and the source for a download class that has constants to interact with the ContentProvider but I haven't been able to find the source for the ContentProvider.

I'm wanting to find this so that I can know a good way to implement a download of my own, since I'll be using a lesser version than 2.3 for my app.

like image 222
Pzanno Avatar asked Feb 21 '11 18:02

Pzanno


1 Answers

I was able to find this here. You can also get the project by cloning the DownloadProvider project and looking at the project source code. The DownloadProvider.java specifically was what I was looking for. However, the DownloadThread.java handles the heart of the download implementation, so I would recommend looking at that.

The git command is

git clone https://android.googlesource.com/platform/packages/providers/DownloadProvider
like image 63
Pzanno Avatar answered Oct 08 '22 03:10

Pzanno