Sub SetMenuItems(ConnectionStatus As Boolean)
Dim Obj1 As Reflector
Obj1.Target = Obj1.GetActivity
Obj1.SetField2("menuItems", Null)
Select Case ConnectionStatus
Case True
Activity.AddMenuItem3("Connect", "mnuConnection", LoadBitmap(File.DirAssets, "power-green.png"), True)
Case False
Activity.AddMenuItem3("Connect", "mnuConnection", LoadBitmap(File.DirAssets, "power-red.png"), True)
End Select
Activity.AddMenuItem3("Clear Board", "mnuClear", LoadBitmap(File.DirAssets, "trash.png"), True)
' Activity.AddMenuItem3("Set Clock", "mnuSetClock", LoadBitmap(File.DirAssets, "stopwatch.png"), True)
' Activity.AddMenuItem3("Time Of Day", "mnuTimeOfDay", LoadBitmap(File.DirAssets, "clock.png"), True)
Obj1.RunMethod("invalidateOptionsMenu")
End Sub