Implementation is now the SD card, I think, if there is no SD card phone how to do, it would be the next to the phone's memory card.
However, this path how to write, or is there any way to achieve. Please advise!
With code:
downloadManager = (DownloadManager) getSystemService (DOWNLOAD_SERVICE);
Uri uri = Uri.parse ("http: //XXX.XX.XX/SinaNewsRelease.apk");
Request request = new Request (uri);
// Set allows the use of network type, there is a mobile network and wifi can
request.setAllowedNetworkTypes (DownloadManager.Request.NETWORK_MOBILE | DownloadManager.Request.NETWORK_WIFI);
// Notice
to interfacerequest.setShowRunningNotification (true);
// Set the title
request.setTitle ("Sina news");
// Display the download interface
request.setVisibleInDownloadsUi (true);
// Set the download path / mnt / sosspad / download
request.setDestinationInExternalPublicDir ("/ download /", "SinaNewsRelease.apk");
// Record ID when using
installationid = downloadManager.enqueue (request);
Reply:
Look inbox, plus I Q Q
Reply:
Brother, you there is no SD card and finally how to achieve? QQ: 393282035 Thank you
Reply:
Landlord to solve this problem? ? Neighborhoods. . .
Reply:
How I added a sentence after
request.setAllowedNetworkTypes (DownloadManager.Request.NETWORK_MOBILE | DownloadManager.Request.NETWORK_WIFI);
On the Meizu M9, 4.0.3 can not download it
Reply:
Reply:
Seeking solutions there
No comments:
Post a Comment