I have an B4A APP, i use activities and it's very easy, for a new form:
and when i finish (or the user exit)
everytimes that i enter in the activity the controls are created (activity_create) and when i exit the form/activity/page is destroyed
In B4i i based in the Erel example, i call the form with:
Show is a rutine with this code:
when i finish:
but the form/activity/page not is destroyed, and when i recall to this form/page the controls are already created and with data.
Is there any way, different of "RemoveCurrentPage" and more similar to "Activity.Finish" of Android?
Thanks you and sorry for my bad english (50% my fault and 50% Google's fault ;-) )
B4X:
StartActivity(Nombre_Pantalla)
B4X:
Activity.Finish
In B4i i based in the Erel example, i call the form with:
B4X:
Nombre_Pantalla.Show
B4X:
If pg.IsInitialized = False Then
pg.Initialize("pg")
'Here Activity_Create code
End If
Main.NavControl.ShowPage(pg)
B4X:
Main.NavControl.RemoveCurrentPage
Is there any way, different of "RemoveCurrentPage" and more similar to "Activity.Finish" of Android?
Thanks you and sorry for my bad english (50% my fault and 50% Google's fault ;-) )