I'm trying to write my first cross platform app in Xamarin using mvvm. The app records items (payments) inserted by the user and does some stuff (previsions and other math).
I wrote the code to add/update/delete/show items and when a item is added the app save the item writing a file with a custom extension (*.dinero
) that contains all information about the item, so asynchronously the app load all files at the start.
I embedded a function that send by email these files in order to allow to another user to add the same item to its items list.
My question is how can I associate the the custom file extension to my app and how implement a procedure that open the "newItempage" to allow the user to save the item to its files?
I found the question Associate file extension with Xamarin Android application but I can't understand how to use it (where i have to write the code reported in the answer).