I am reading phone cell info. using the following codes.
It works only when the screen is on.
If the screen is off, the data returned will remain unchanged although I have already moved to another cell coverage.
I just want to ask if it still impossible to read CID,LAC when the phone screen is off.
It works only when the screen is on.
If the screen is off, the data returned will remain unchanged although I have already moved to another cell coverage.
I just want to ask if it still impossible to read CID,LAC when the phone screen is off.
B4X:
ReflectorObj.Target = ReflectorObj.GetContext
ReflectorObj.Target = ReflectorObj.RunMethod2("getSystemService", "phone", "java.lang.String")
OperatorName = ReflectorObj.RunMethod("getNetworkOperatorName")
MccMnc = ReflectorObj.RunMethod("getNetworkOperator")
ReflectorObj.Target = ReflectorObj.GetContext
ReflectorObj.Target = ReflectorObj.RunMethod2("getSystemService", "phone", "java.lang.String")
ReflectorObj.Target = ReflectorObj.RunMethod("getCellLocation")
Cid = ReflectorObj.RunMethod("getCid")
Lac = ReflectorObj.RunMethod("getLac")