I need the instance of DownloadManager class in the gingerbread framework layer. I tried this,
mgr=(DownloadManager) getSystemService(context.DOWNLOAD_SERVICE);
But it is not working. How can i download a file using the download manager from the framework layer?
On StackOverflow, people will think more highly of you if you provide a reasonable set of symptoms.
Here is a sample project demonstrating the use of
DownloadManager.