Back button Activity's intents

anaylor01

Well-Known Member
Licensed User
Longtime User
I have an app that as of now only has 2 screens/layouts. I need a tutorial or some instruction on how to program using startactivity and finishactivity. What I am doing now is when the app starts it shows my first layout. A user pushes a button than it removes that layout by calling the following sub:
Sub RemoveViews
Dim i As Int

For i=Activity.NumberOfViews-1 To 0 Step -1
Activity.RemoveViewAt(i)
Next
End Sub

Then I run Activity.LoadLayout("Mainscreen") to open my next layout.
So I guess my question is what is the proper way of doing this?
 
Top