I have a variable in the main activity called PageNumber. In a secondary activity i save the current page thus
when resuming the activity from the main module usng StartActivity the variables are Zero. They are Dim in Process_Globals.
Where am i going wrong
B4X:
Sub Activity_Pause (UserClosed As Boolean)
Main.PageNumber= PageTurner.CurrentPage
Main.CatNum=CatNum
PageTurner.OnPause
End Sub
Sub Activity_Resume
Log (Main.PageNumber)
Log(Main.CatNum)
PageNumber=Main.PageNumber
CatNum=Main.CatNum
PageTurner.CurrentPage = PageNumber
PageTurner.OnResume
End Sub
when resuming the activity from the main module usng StartActivity the variables are Zero. They are Dim in Process_Globals.
Where am i going wrong