Android Question Login activity / Layout

Discussion in 'Android Questions' started by jayel, Mar 10, 2015.

  1. jayel

    jayel Active Member Licensed User


    I have a login layout.
    When there is no file on my device with a key, the login should showed.
    When there is a file then another layout should be showed.
    This workes :
    Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    If File.Exists(File.DirInternal, "robomobile.txt") = True Then 
    End If

    End Sub
    The SendKeyAndPhoneid sub checks if the user is known in a mysql database on a server.
    I communicate with httputils2.
    When everything checks out, then another layout starts.

    Now my question : I want to have a logout from the screen and when the user clicks it i should show the Main view but with ogin screen.

    How can I do this? One activity with two layout?
    Or another solution?
  2. Erel

    Erel Administrator Staff Member Licensed User

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice