finally had a chance to put this in debug...but not seeing anything in the logs...
i even tried to change the code to something like this where just calling a sub inside same activity instead of finishing the activity....
if I click the menu, then click the menu option, then click the menu option (or any part of the screen) again (instead of clicking on the msgbox)
if i do that fast and multiple times the current activity just closes and goes back to the main activity
can't specifically define an exact way to duplicate...just randomly doing what i have above enough times seems to cause the problem...
NOTE: no matter how hard i tried i could NOT get this to behave this way on my Samsung Galaxy S7 (it always seems to works the way i think it should...ie not closing out of the current activity randomly)
the weird thing is it works most of the time on my Galaxy Nexus 10 and Amazon Fire 7...but i can make it fail on these devices regularly...
could it be a menu issue? msgbox issue? manifest editor issue? O/S issue?
just not sure what could cause the activity to close when it's not getting it from the code...
any thoughts would be great...
Sub mnuX_Click
Dim Answ As Int
Dim txt AsString
txt = "Do you really want to quit the current " & vX & " activity?" & CRLF & "NOTE: You will lose the current progress."
Answ = Msgbox2(txt, "A T T E N T I O N", "Yes", "", "No", Null)
If Answ = DialogResponse.POSITIVE Then
Main.vX = 1 'set a variable in the main activity....should this maybe be after the activity.finish?
NewSub ' call a sub in the current activity
EndIf
End Sub