A anaylor01 Well-Known Member Licensed User Longtime User May 27, 2011 #1 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?
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?
klaus Expert Licensed User Longtime User May 27, 2011 #2 Did you have a look at the examples here ? Best regards. Upvote 0