Android Question i have a strange behavior at switching between activitys

MarkusR

Well-Known Member
Licensed User
i added afterwards a login screen
so if main opens i goto login activity
if me click ok there the main opens again but if me click in this main screen at button or menu or the screen itself the app minimized for any reason and goto pause!? a mystery ..

ok, a fix is to add .finish there after reopen main
B4X:
   StartActivity(Main)
   Activity.Finish

** Activity (main) Pause, UserClosed = false **
** Activity (activitylogin) Create, isFirst = true **
** Activity (activitylogin) Resume **
** Activity (activitylogin) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
 
Last edited:
Top