![]() 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. We have used OneDrive for sharing large files/photos. ![]() OneDrive on Android shows files posted this month and all photos. ![]() If anyone has a simpler solution, I'd love to hear it. PC shows: but only shows files posted two months ago. 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. Step 1 Sign in OneDrive Install and run OneDrive on your Android phone. 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. My app then gets the weblink that points to the file. To view a short video on how to download OneDrive for Android, please visit the Microsoft OneDrive Support article, Set up your Android phone or tablet. I have implemented the OneDrive picker in my app to allow the user to easily select a file from the OneDrive cloud storage.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |