iOS Question Control-Center disable

Filippo

Expert
Licensed User
Hi,

how can you deactivate the control center via app?
I ask because every time you do the Control Center visible, my BLE device loses its connection.

Control-center.jpg
 

Filippo

Expert
Licensed User
I have found the code:
B4X:
- (BOOL) prefersStatusBarHidden
{
    return YES;
}
how can I do it with NativeObject?
 

Filippo

Expert
Licensed User
It will not disable the control center.

Full screen app: http://www.b4x.com/android/forum/threads/full-screen-apps.47866/#content

Why is the BLE connection broken? Are you doing anything in Application_Inactive event?
You're right!:(
But where can I disable it? Or should not I turn off?
B4X:
Private Sub Application_Inactive
'    Log("Application_Inactive")
  
    If GPS1.LocationServicesEnabled Then
        GPS1.stop
    End If
    'Bluetooth ausschalten
    If mCrono.bluetooth.btManager.IsInitialized Then mCrono.bluetooth.btManager.Disconnect
End Sub
 

Filippo

Expert
Licensed User
Top