Android Question Open Activity.LoadLayout("1") and closed

Alisson

Active Member
Licensed User
How can close de Activity.LoadLayout("1") and open the new Activity.LoadLayout("2"), this my code:

Sub fazer_Click ' my click verify the login and pass, the next is redirect to one layout
login1 = login.Text
pass1 = pass.Text

Activity.RemoveViewAt("1") ' I wait closed the Layout 1.bal, but not closed

If login1 = "1" And pass1 = "1" Then
Activity.LoadLayout("2")
End If
End Sub

Thanks very much!
 
Top