So since I don’t use the source normally. Clone, Build, Build Tools, Create Android App with template, delete nuget refs, Add projects as references to the Android project are the steps right?
Ok trying out right now…
Works for me too on the emulator so far…
Now testing on a device…
Worked on the device too.
@tunkio Good work! I marked this as Solution! @Trinith Good workaround! I leave it here too for others using the current version provided by the nugets.
Created a pull request here which applies the change described by @tunkio which fixes the issue but probably it needs more work because the commented source may be necessary for other platforms or something which I don’t know and did not check at this point. Further discussion can be done on GitHub of course.
Instead of calling Exit(), use MoveTaskToBack(true) inside the Update method.
Also I have the following code in all my AndroidGameActivity objects, I think this was to bypass whatever internal flag that causes this behavior:
/// <summary>
/// Overide the default back button behavior, and do nothing
/// </summary>
public override void OnBackPressed()
{
}