9

DownloadManager and OAuth v1.0

view full story
linux-howto

http://stackoverflow.com – I am using a very simple code to download files: @SuppressWarnings("deprecation") @SuppressLint("NewApi") public static void downloadFile(String url, String localSaveDir, String localSaveName) { DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url)); request.setDestinationInExternalPublicDir(localSaveDir, localSaveName); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE); } else { request.setShowRunningNotification(true); } DownloadManager (HowTos)