Can you post the code that logout code and the full error message from the logs?
This is another activity where i have the side menu and under which i have the logout
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: False
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Public ion As Object
Public const tempImageFile As String = "tempimage.jpg"
Public imageFolder As String
Public lastPicture As Bitmap
Private auth As FirebaseAuth
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private lblName2 As Label
Private sm As SlidingMenu
Private btnBooking As Button
Private btnconfirm As Button
Private Label1 As Label
Private Label2 As Label
Private Label3 As Label
Private Label4 As Label
Private Label5 As Label
Private lblName As Label
Private Panel1 As Panel
Private Panel2 As Panel
Private Panel3 As Panel
Private Panel4 As Panel
Private Panel5 As Panel
Private SlidingMenu As SlidingMenuStd
Private btnSlidingMenu As Button
' Private Image As ImageView
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
Activity.LoadLayout("DoctorInfo")
sm.Initialize("sm")
Dim offset As Int = 100dip
sm.BehindOffset = offset
sm.Mode = sm.BOTH
Dim lv1 As ListView
lv1.Initialize("lv1")
For i = 1 To 10
lv1.AddSingleLine("Action " & i)
Next
sm.SecondaryMenu.AddView(lv1, 0, 0, 100%x - offset, 100%y)
Dim b1, b2, b3, btnSignOut As Button
Dim title As Button
' Dim Cam As Button
b1.Initialize("b1")
b2.Initialize("b2")
b3.Initialize("b3")
btnSignOut.Initialize("btnSignOut")
b1.Text = "Images"
b2.Text = "Project Videos"
b3.Text = "Student Videos"
btnSignOut.Text = "Logout"
sm.Menu.AddView(b1, 10dip, 220dip, 100%x - offset - 20dip, 50dip)
sm.Menu.AddView(b2, 10dip, 280dip, 100%x - offset - 20dip, 50dip)
sm.Menu.AddView(b3, 10dip, 340dip, 100%x - offset - 20dip, 50dip)
sm.Menu.AddView(btnSignOut, 10dip, 400dip, 100%x - offset - 20dip, 50dip)
sm.Menu.Color = Colors.White
b1.Color = Colors.RGB(255, 69, 0)
b2.Color = Colors.RGB(255, 69, 0)
b3.Color = Colors.RGB(255, 69, 0)
btnSignOut.Color = Colors.RGB(255, 69, 0)
b1.TextSize = 16.0
b2.TextSize = 16.0
b3.TextSize = 16.0
btnSignOut.TextSize = 16.0
title.Initialize("title")
title.Text = "Kiddypi!"
sm.Menu.AddView(title, 0dip, 490dip, 100%x - offset - 0dip, 80dip)
title.Color = Colors.RGB(255, 69, 0)
title.TextSize = 22.0
title.TextColor = Colors.White
' Image.Initialize("Image")
' sm.Menu.AddView(Image, 10dip, 20dip, 100%x - offset - 20dip, 150dip)
' Image.Bitmap = LoadBitmap(File.DirDefaultExternal, "logo.jpg")
'Image.Bitmap = LoadBitmapSample(File.DirAssets, "tempimage.jpg", Image.Width, Image.Height)
'Image.Bitmap = LoadBitmapSample(File.DirDefaultExternal, "tempimage.jpg", Image.Width, Image.Height)
' Cam.Initialize("Cam")
' Cam.Text = "EDIT PROFILE"
' Cam.TextSize = 14.0
' Cam.TextColor = Colors.RGB(119, 49, 209)
' sm.Menu.AddView(Cam, 10dip, 200dip, 100%x - offset - 20dip, 50dip)
' Cam.Color = Colors.White
End Sub
'Sub Auth_SignedIn (User As FirebaseUser)
' Log("SignedIn: " & User.DisplayName)
' lblName2.Text = "Hello: " & User.DisplayName
'End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
'Sub Activity_Create(FirstTime As Boolean)
' If FirstTime Then
' auth.Initialize("auth")
' End If
' Activity.LoadLayout("KP_firstpg")
' If auth.CurrentUser.IsInitialized Then Auth_SignedIn(auth.CurrentUser)
'End Sub
Sub r_CheckedChange(Checked As Boolean)
End Sub
Sub Cam_Click
Activity.Finish
StartActivity("Camera")
End Sub
'Sub btnconfirm_Click
' Msgbox("Appointment Confirmed","CONFIRMATION ")
' Activity.Finish
' StartActivity("Main")
'End Sub
Sub b_CheckedChange(Checked As Boolean)
End Sub
Sub a_CheckedChange(Checked As Boolean)
End Sub
'Sub btnBooking_Click
' StartActivity("Calendar")
'End Sub
Sub btnSlidingMenu_Click
sm.ShowMenu
End Sub
Sub lv1_ItemClick (Position As Int, Value As Object)
Log(Value)
sm.HideMenus
End Sub
Sub Activity_KeyPress (KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK And sm.Visible Then
sm.HideMenus
Return True
End If
Return False
End Sub
Sub B1_Click
Log("b1_click")
sm.HideMenus
End Sub
Sub B2_Click
Log("b2 click")
Activity.Finish
StartActivity("Main")
End Sub
Sub B3_Click
Log("b3 click")
Activity.Finish
StartActivity("Videos")
End Sub
Sub btnSignOut_Click
Log("b4 click")
' Activity.Finish
' StartActivity("Main")
auth.SignOutFromGoogle
lblName2.Text = "Goodbye!"
End Sub