I am in the need of opening a file on disk on Android and iOS. I have tried for a few hours to do it myself, but as I am not familiar with Java nor C++ it is taking an aweful lot of time (which I would prefer to spend on improving other parts of the app ). So here is me hopping that someone have already done it.
So - Have anyone written an extension for getting files on disk?
Personally I want to open a zip file, but it would be nice if a filter can be specified when calling the hypothetical extension.
I have a prototype of the feature I want to implement working by downloading the zip from the web by writing the http response to a file. I then unzip it and import the content. This works fine but it requires the user to host the content in a set location (like github, because I need to predict urls, redirects and such), this makes a feature like this not very user friendly.
I can not think of a game where this was implemented, my app isnāt a game.
Android got the document-provider, question is if one should assume they have a file browser, if one should be built in the extension, or if they donāt have one simply show a warning.
I am not 100% this is it (as I am very unfamiliar with native android/iOS) but iOS got something called UIDocumentPickerViewController.
I think with this kind of setup you would have to do it āblindā. Tell the user "put you zipfile in your documents folder and name itplease_import_this_file.zip." Which doesnāt feel very nice and user friendly.
def-diags doesnāt have support for iOS/Android currently, have been talking to Sven a bit about it already seems that it wouldnāt be ānone trivialā to add it to def-diags with a similar interface.