What is the best/recommended method to upload PDF (or other "doc" files) from File Chooser? Since there's many deprecated method in Android such as Environment.getExternalStorageDirectory()
MediaStore.Files.FileColumns.DATA
etc. It makes us harder to get the File
reference to it.
What i do now is get uri from onActivityResult, copy the content to private folder, and use the private-copied File
to upload to server. But i think that's too expensive
Is there any better-recommended-bugfree method to do?