I'm using Android's Storage Access Framework in a Xamarin application to allow the user to save SQLite3 files to the SD card and also open files from the SD card.
To save the file:
Intent save = new Intent(Intent.ActionCreateDocument);
save.AddCategory(Intent.CategoryOpenable);
save.SetType("application/*");
save.PutExtra(Intent.ExtraTitle, "database.db3");
StartActivityForResult(save, 40);
How can I save an existing db3 file instead of creating this new empty one?
To open the file:
Intent read = new Intent(Intent.ActionOpenDocument);
read.AddCategory(Intent.CategoryOpenable);
read.SetType("application/*");
StartActivityForResult(read, 50);
When the file is opened how do I access it in the code?