Open mueller-ma opened 1 year ago
This requires a FileProvider to share saved levels as .non
file. The levels are saved in a folder returned by Context.getDir("levels")
, but it's not possible to share file in that folder. Saved levels need to be migrated to the folder returned by Context.getFilesDir("levels")
first.
See https://developer.android.com/reference/androidx/core/content/FileProvider
As a second step the sharing could be implemented for already saved levels. And last step would be a share button that temporary saves a level and shares it.
I'd like to share levels via the default Android share sheet, e.g. to a messenger.