{"repo":"HBiSoft/PickiT","free":true,"listed":false,"github":"https://github.com/HBiSoft/PickiT","clone":"git clone https://github.com/HBiSoft/PickiT.git","description":"An Android library that returns real paths from Uri's","language":"Java","stars":297,"topics":["android","android-library","java","file-path","file-uri"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Creating and maintaining a library like this takes a lot of time. If you would like to thank me, you can do so below: --- PickiT An Android library that returns real paths from Uri's Demo screenshot: Download the demo app here Add Pickit to your project: --- Add the following in your root build.gradle at the end of repositories: Then, add the dependency, in your app level build.gradle: Implementation: --- First, implement PickiT callbacks, as shown below: Alt+Enter to implement the methods, we will discuss the methods later in the readme. Implement pickiT in your onCreate() method, as shown below: You can now select a file as you usually would (have a look at the demo if you don't know how to do this). Then in onActivityResult , you can pass the path to PickiT, as shown below: Dropbox, Google Drive, OneDrive and files from unknown file providers: --- You can check if the Uri is from Dropbox,Google Drive or OneDrive by calling: You can check if the Uri is from an unknown provider by calling: --- If the selected file was from Dropbox,Google Drive, OneDrive or an unknown file provider, it will then be copied/created in Internal Storage - Android - data - your.package.name - files - Temp It is your responsibility to delete the file when you are done with it, by calling: This can be done in onBackPressed and onDestroy , as shown below: If you do not call pickiT.deleteTemporaryFile(Context); , the file will remain in the above mentioned folder and will be overwritten each time you ","default_branch":null,"files":null,"tree":[],"storefront":"/r/HBiSoft","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/HBiSoft/PickiT/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}