jaredforrest / nonocross

A simple nonogram puzzle app for Android
GNU General Public License v3.0
41 stars 9 forks source link

Share levels via messenger, mail, etc. #96

Open mueller-ma opened 1 year ago

mueller-ma commented 1 year ago

I'd like to share levels via the default Android share sheet, e.g. to a messenger.

mueller-ma commented 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.