B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK Then
Activity.Finish
Select Main.Ruecksprungsort
Case "Ueberweisungen"
Main.Ruecksprungsort = "Main"
StartActivity(Ueberweisungen)
Case "Finanzverlauf"
Main.Ruecksprungsort = "Main"
StartActivity(Finanzverlauf)
Case "Buchung_suchen"
Main.Ruecksprungsort = ""
StartActivity(Buchung_suchen)
Case Else
Main.Ruecksprungsort = ""
StartActivity(Main)
End Select
Return True
End If
Return False
End Sub
is the sub programmed correctly or do you see any programming errors.
Have some problems when Return True and when Return False is used. Is Activity.Finish correct there or does it have to be in every case statement?
Greetings strupp01