Hi,
First of all, sorry for the size of this message, but I want to explain as better as possible my problem.
I have a problem with the close activities.
Starting point is 3 activities as following:
(to understand better my sample, considere that activity1 is the list of cars to repare, Activity2 is the list of what to do on the car, and activity3 is what you have really done on the car)
Loading the first activity with:
Clicking on the first item of the listview of activity 1, calls activity 2 with:
Clicking on the right Arrow of activity 2, calls activity 3 with:
Now I want to click on the cross of activity3 and go back to activity1.
I've added in the in activity3_resume:
After the click on cross, Activity3 is shown.
First problem: Doing that, my listview is not updated the second time
Second problem: if I click on the second item of the listview of activity 1, data in activity2 are not updated
It seems with my method that after the 3 first screens, system will not go through the sub Activity_Create and keep old data.
Your help is really needed to understand how to solve my problem.
Thx in advance.
First of all, sorry for the size of this message, but I want to explain as better as possible my problem.
I have a problem with the close activities.
Starting point is 3 activities as following:
(to understand better my sample, considere that activity1 is the list of cars to repare, Activity2 is the list of what to do on the car, and activity3 is what you have really done on the car)
Loading the first activity with:
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Activity1")
InitCtrl '(load a listview with an SQL link)
End Sub
Clicking on the first item of the listview of activity 1, calls activity 2 with:
B4X:
StartActivity(Activity2)
Clicking on the right Arrow of activity 2, calls activity 3 with:
B4X:
StartActivity(Activity3)
Now I want to click on the cross of activity3 and go back to activity1.
I've added in the in activity3_resume:
B4X:
Activity.Finish
StartActivity(Activity1)
After the click on cross, Activity3 is shown.
First problem: Doing that, my listview is not updated the second time
Second problem: if I click on the second item of the listview of activity 1, data in activity2 are not updated
It seems with my method that after the 3 first screens, system will not go through the sub Activity_Create and keep old data.
Your help is really needed to understand how to solve my problem.
Thx in advance.
Last edited: