Wish how to Know location of Incoming calls using cell id and location area code?

M.LAZ

Active Member
Licensed User
Longtime User
Hi all,
it's very important for me, i use this code to get information for my location...
B4X:
Dim Obj1 As Reflector
Dim cid, lac As Int
Obj1.Target = Obj1.GetContext
Obj1.Target = Obj1.RunMethod2("getSystemService", "phone", "java.lang.String")
Obj1.Target = Obj1.RunMethod("getCellLocation") ' get a GsmCellLocation
cid = Obj1.RunMethod("getCid") ' gsm cell id
lac = Obj1.RunMethod("getLac") ' gsm location area code
Msgbox(cid,"gsm cell id")
Msgbox(lac,"gsm location area code")
with this permission
AddPermission (android.permission.ACCESS_COARSE_LOCATION)
briefly,,,

i mean how to Know location of Incoming calls using cell id and location area code?
 

M.LAZ

Active Member
Licensed User
Longtime User
thanks uri, but i mean the caller's cell id and the caller's lac,just incoming calls
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…