

I followed some advice from this post How to download and save a file from Internet using Java?Īnd have managed to download the file from OneDrive. If anyone has a simpler solution, I'd love to hear it.

Although I really was surprised there isn't and easier way to download a file. IPickerResult result = mPicker.getPickerResult(requestCode, resultCode, data) Thanks! if (requestCode = ONEDRIVE_CHOOSER_REQUEST) Now that I have the Uri, please help me with how to get a local copy of the file so that I can use it. I've done some searches to find out how to download a file give the weblink, but they either seem way to complicated or have not worked.īelow is the code for the onactivity result from the OneDrive picker. I would have thought this would be simple (As Dropbox made downloading a local copy part of their picker function) but it seems OneDrive has not. I would now like to download (make a copy) of the file to the local storage on the Android device. Download Microsoft OneDrive Apk Android App 6.84 free- all latest and older versions apk available. My app then gets the weblink that points to the file. I have implemented the OneDrive picker in my app to allow the user to easily select a file from the OneDrive cloud storage.
