cellinfo

getAllCellInfo in dual SIM

血红的双手。 提交于 2021-02-09 07:30:48
问题 Does anyone know if the cell indexes on the list returned from TelephonyManager.getAllCellInfo() are related to SIM slot numbers? I'm using Android API 24... After experimenting a bit, it seems that running the method updateCellInfo - described below - always returns a list where it's first index corresponds to device's last SIM slot, and it's last index corresponds to device's first SIM slot. Can anybody confirm this? Is this correlation plausible? private ArrayList<CellInfo> updateCellInfo

getAllCellInfo in dual SIM

馋奶兔 提交于 2021-02-09 07:27:10
问题 Does anyone know if the cell indexes on the list returned from TelephonyManager.getAllCellInfo() are related to SIM slot numbers? I'm using Android API 24... After experimenting a bit, it seems that running the method updateCellInfo - described below - always returns a list where it's first index corresponds to device's last SIM slot, and it's last index corresponds to device's first SIM slot. Can anybody confirm this? Is this correlation plausible? private ArrayList<CellInfo> updateCellInfo

onCellInfoChanged() callback is always null

落花浮王杯 提交于 2020-02-20 05:30:09
问题 i am trying to get a list of all available cells the device can find. But i am stuck, as my CellInfo is always null and i don't figure why. Can someone give me a hint? There is pretty few info on onCellInfoChanged() at google. MainActivity: CellListener cellListener = new CellListener(this); cellListener.start(); CellListener: public class CellListener extends PhoneStateListener { private static final String TAG = "CellListener"; private TelephonyManager telephonyManager = null; private

onCellInfoChanged() callback is always null

[亡魂溺海] 提交于 2020-02-20 05:26:25
问题 i am trying to get a list of all available cells the device can find. But i am stuck, as my CellInfo is always null and i don't figure why. Can someone give me a hint? There is pretty few info on onCellInfoChanged() at google. MainActivity: CellListener cellListener = new CellListener(this); cellListener.start(); CellListener: public class CellListener extends PhoneStateListener { private static final String TAG = "CellListener"; private TelephonyManager telephonyManager = null; private

onCellInfoChanged() callback is always null

时光怂恿深爱的人放手 提交于 2020-02-20 05:26:07
问题 i am trying to get a list of all available cells the device can find. But i am stuck, as my CellInfo is always null and i don't figure why. Can someone give me a hint? There is pretty few info on onCellInfoChanged() at google. MainActivity: CellListener cellListener = new CellListener(this); cellListener.start(); CellListener: public class CellListener extends PhoneStateListener { private static final String TAG = "CellListener"; private TelephonyManager telephonyManager = null; private

getAllCellInfo - duplicate values

北城以北 提交于 2020-01-03 19:04:29
问题 I am using getAllCellInfo to acquire serving- and neighboring cell info from my phone ( unrooted LG G5 - for what it's worth), but the function returns duplicate data for all the neighboring-measured towers. In the area that I'm in, my test data is 3G (WCDMA) most of the time. Here's an extraction of my WCDMA results, showing the raw string and parsed values (in code quoted for readibility): Site_0 Registered: true dBm: -99 Raw str: CellIdentityWcdma:{ mMcc=655 mMnc=1 mLac=63 mCid=9538943

getAllCellInfo() returns an empty list in Huawei Honor 7

给你一囗甜甜゛ 提交于 2019-12-22 09:27:29
问题 I am having an android application that fetches information of cell towers. I use this getAllCellInfo() to fetch info of a primary cell and neighbour cells. I included the ACCESS_COARSE_LOCATION permission to manifest.xml and make a request for the permission in runtime. It works in other phones but in Huawei Honor 7, the function returns an empty list. My code: Catlog: I have checked other people questions: getAllCellInfo returns null in android 4.2.1 and Android getAllCellInfo() returns