I have spent the last 8 months struggling with the convoluted complexities of the android file system, and wonder about a problem which needs attention:
Is there any intention of putting URI file I/O into such things as:
Bitmap.LoadFromFile(filename) could be overloaded by
Bitmap.LoadFromURI(uri : Jnet_uri) or
Bitmap.LoadFromJStream (JS : JInputStream) (which I think may be more useful)
MediaPlayer.Filename := filename could similarly be overloaded by
MediaPlayer.Filename := FileReader (JS : JInputStream)
Similarly for writing.
Copying the files back and forth between URI directories and file directories slows down the access.
For one of my apps the user picks the audio file to work with and I copy it to a location local to my app. This works for me as the files are chosen in advance of using (playing) them. I’m using the Bass library to do the playback.
How big are the files you’re copying?
Do you only need to use them once each?
How much of a delay are you experiencing with the copy?
I use a variety of many files depending on what the used chooses. It is slow, as some of the picture files are fairly big, though waiting a few seconds is a nuisance rather than a disaster. I have sent off a suggestion to Embarcadero to see if they would like some of their things to cope with the idiot android fiile system.