Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
auth.Initialize("auth")
End If
Activity.LoadLayout("1")
If auth.CurrentUser.IsInitialized Then Auth_SignedIn(auth.CurrentUser) ' here the user should be initialized after login and your sub Auth_SignedIn is called.
End Sub
Sub btnSignIn_Click
auth.SignInWithGoogle
End Sub
Sub btnSignOut_Click
auth.SignOutFromGoogle
lblName.Text = "Goodbye!"
End Sub
Sub Auth_SignedIn (User As FirebaseUser)
Log("SignedIn: " & User.DisplayName)
lblName.Text = "Hello: " & User.DisplayName
' Write the File here now..
End Sub