Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
xui.SetDataFolder("B4XGoogleContacts") 'only required for B4J
oauth2.Initialize(Me, "oauth2", ClientId, "user-read-private user-read-email", _
ClientSecret, xui.DefaultFolder)
'oauth2.ResetToken 'uncomment if you changed the scope or want to reset the token
End Sub