Hello,
in my main-Activity I use this code:
This should (and does) show the "Monatseingabe"-Activity and fill it with data from the database.
When I hit the back-button to return to the Main-Activity and to select another listview-Item, the Monatseingabe-Activity is completly loaded agin (needs long time because it contains a lot of labels).
Is there a way to keep the Monatseingabe-Activity cached? So that I only have to change the content of the views without loading them again?
Samuel
in my main-Activity I use this code:
B4X:
Sub listview1_ItemClick (Position As Int, Value As Object)
CallSubDelayed2(Monatseingabe, "SetKlient", listview1.GetItem(Position))
End Sub
This should (and does) show the "Monatseingabe"-Activity and fill it with data from the database.
When I hit the back-button to return to the Main-Activity and to select another listview-Item, the Monatseingabe-Activity is completly loaded agin (needs long time because it contains a lot of labels).
Is there a way to keep the Monatseingabe-Activity cached? So that I only have to change the content of the views without loading them again?
Samuel