Is it possible to detect if a hardware mobile data connection exists (GPRS) on a device?
similar to this (hardware keyboard exists, By Erel):
B4X:
Sub HardwareKeyboardPresent As Boolean
Dim r As Reflector
r.Target = r.GetContext
r.Target = r.RunMethod("getResources")
r.Target = r.RunMethod("getConfiguration")
Dim keyboard As Int = r.GetField("keyboard")
Return keyboard <> 1'KEYBOARD_NOKEYS
End Sub
I want to know if the device has gprs connection (data connection), for example, a tablet, sometimes do not have and only have wifi.
I've tried GetPhoneType (Phone library) and with this I can say, but do not want to add a new library to my application.
So wondering if there is something similar to see if there is a hard keyboard.