I'm not sure if i'm just not understanding something here but i'm just trying to do something simple. Store the scroll position of a list on Pause() and restore it on Resume() so that orientation changes etc.. don't reset it to position 0.
However when i look at the logs i see this:
[Common.java:151:Log()] ** Activity (main) Pause, UserClosed = false **
[Common.java:151:Log()] ** Activity (main) Create, isFirst = false **
[Common.java:151:Log()] ** Activity (main) Resume **
but I set breakpoints on:
The breakpoints never hit, the code isn't run at all. I'm running it in debug mode, not sure where i'm going wrong here...
However when i look at the logs i see this:
[Common.java:151:Log()] ** Activity (main) Pause, UserClosed = false **
[Common.java:151:Log()] ** Activity (main) Create, isFirst = false **
[Common.java:151:Log()] ** Activity (main) Resume **
but I set breakpoints on:
B4X:
Sub Activity_Resume
sv.ScrollPosition = LastScrollPosition
End Sub
Sub Activity_Pause (UserClosed As Boolean)
LastScrollPosition = sv.ScrollPosition
End Sub
The breakpoints never hit, the code isn't run at all. I'm running it in debug mode, not sure where i'm going wrong here...