Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Problem on back button

$
0
0

Hello!

In a part of my application when the user is pressing the back button, I am saving the data into a SQLite Database (I am saving into three tables). To do this I have written this code at the page:

protected override bool OnBackButtonPressed()
{
if (this.ViewModel!=null && !this.ViewModel.IsCurrentOrderCancel)
{
this.ViewModel.SaveDataCommand.Execute(null);
}
return base.OnBackButtonPressed();
}

This works perfectly in a Windows Phone, but in an Android it only save the data of the first table. Any idea how I could resolve it?

Thank you.

Best regards,
Jose Luis.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>