Hi Erel,
and thank you so much for the fast reply.
The problem concerns the Network Cell Identifiers Location Area Code (LAC) and Cell ID (CID), which is returned by PhoneStateListener's Event
onCellLocationChanged(CellLocation As String)
So it does not concern a geographic location, and it doesn't seem to me that FusedLocationProvider could not be helpful.
Here is some of the code:
In Manifest, I granted many permissions, but even the last one does not help:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_UPDATES"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
Sub Process_Globals
Dim PSL As PhoneStateListener
Dim cellname As String
.
.
Sub Service_Create
PSL.Initialize ("PSL",False)
PSL.startListening()
.
.
PSL_onCellLocationChanged (CellLocation As String)
cellname = CellLocation
Log (cellname)
.
.
CellLocation returns on Android 9 : [11061,2909698,-1], where 11061 is the LAC, 2909698 is the CID
CellLocation returns on Android 10: [<MASKED>]
I tried an app from the PlayStore, "Netmonitor", and to my surprise it displays both LAC and CID even on Android 10, so there must be a way...?
Regards, Bernd