This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Start Download | |
*/ | |
public void startDownload(String link, String filename) { | |
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).mkdirs(); | |
DownloadManager mManager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE); | |
DownloadManager.Request mRqRequest = new DownloadManager.Request(Uri.parse(link)); | |
mRqRequest.setDescription("Download file..."); |
NewerOlder