Has now been downloaded to the SD card, and I was wondering if the phone is no SD card how to do, then get down to the phone's memory card.
However, this path to how to write, or is there any way to achieve. Please advise!
Attached code:
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
downloadManager = (DownloadManager) getSystemService (DOWNLOAD_SERVICE);
Uri uri = Uri.parse ("http://XXX.XX.XX/SinaNewsRelease.apk");
Request request = new Request (uri);
/ / Set to allow the use of network types, here is the 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");
When using
/ / Record ID Installationid = downloadManager.enqueue (request);
Reply:
Look inbox, plus I Q Q
Reply:
Brothers, there is no SD card you finally how to achieve it? QQ: 393282035 Thanks
Reply:
The landlord to solve this problem? ? Advice. . .
Reply:
How I added the phrase after
request.setAllowedNetworkTypes (DownloadManager.Request.NETWORK_MOBILE | DownloadManager.Request.NETWORK_WIFI);
On the Meizu M9, 4.0.3 can not download it
No comments:
Post a Comment