I am implementing B4A project to B4I and I have 3 questions.
1. How to get information about permissions in B4I.
I have used RuntimePermission library in B4A. Is there an alternative for B4I?
2. How to check internet connection?
I have used phone object like this example
But object Phone in B4I does not include this (variables/method).
3. Is there some alternative for SimCard object in B4I? I need to get information like:
GetSimSerialNumber
GetSubscriberId
GetSimOperator
GetSimOperatorName
GetPhoneType
Thank you for your answers.
1. How to get information about permissions in B4I.
I have used RuntimePermission library in B4A. Is there an alternative for B4I?
2. How to check internet connection?
I have used phone object like this example
B4X:
Dim p As Phone
If (p.GetDataState == "CONNECTED") Then
Return True
End If
If (p.GetSettings ("wifi_on") == 1) Then
Return True
End If
3. Is there some alternative for SimCard object in B4I? I need to get information like:
GetSimSerialNumber
GetSubscriberId
GetSimOperator
GetSimOperatorName
GetPhoneType
Thank you for your answers.
Last edited: