I am developing an app that reads it's data from several .json files on the device (or perhaps dropbox, or drive)
The user selects these files using a ACTION_GET_CONTENT intent. This intent returns the URIs of the selected files, from which I obtain the paths, which are sent on to an AsyncTask to load in the background.
prior to android 4.4, this worked fine. Now, certain content choosers (notably android's own "downloads" activity) return uri's that do not contain the actual filename or path.
Unfortunately AsyncTask forces you to override doInBackground(String... filenames) - which takes a series of strings as filenames. I could probably serialize the uri's somehow and pass them in the filenames parameter to the method, but now I'm thinking that obviously wasn't the intent.
Therefore it is prompting me to ask the question: is there a better way to do this?
What is the correct way to allow a user to choose and load a series of files in KitKat