iOS Question Control-Center disable

D

Deleted member 103

Guest
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
 
D

Deleted member 103

Guest
I have found the code:
B4X:
- (BOOL) prefersStatusBarHidden
{
    return YES;
}

how can I do it with NativeObject?
 
Upvote 0
D

Deleted member 103

Guest
It will not disable the control center.

Full screen app: https://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
 
Upvote 0
Top