43 questions
0
votes
0
answers
122
views
TelephonyManager.allCellInfo returns all cell despite createForSubscriptionId
I'm not sure if it's normal, but even though I instantiated a specific TelephonyManager for each of my SIM cards (with the subscriptionId), calling allCellInfo returns all cells detected by the device....
1
vote
1
answer
4k
views
How to use TelephonyCallback.CellInfoListener?
I'd like to get cell information updates on an android 12 phone.
I can do this for older versions of android using PhoneStateListener class and listen method. But they are deprecated in android 12.
I'...
0
votes
1
answer
365
views
Get Cellinfo for dual sim (Primary -physical sim and Secondary E-sim) Android
Background: As mentioned in the header, I use two sims (one physical and one Esim). Either one can be made primary sim as required by the user. Also, both the sims are active at the same time.
My app ...
0
votes
1
answer
492
views
I want to use requestCellInfoUpdate in Android 9
I'm using requestCellInfoUpdate() callback to get the latest cell info results. It is working fine in Android version Q and above but when I use it in versions below 10, the app crashes. My goal is to ...
0
votes
1
answer
1k
views
telephonyManager.getAllCellInfo() and subscriptionManager.getActiveSubscriptionInfoList() both returns different mnc (mobile Network code)
I'm trying to get the signal strength of dual sims it works absolutely fine on most of the phones but for some phones (same android version [11] but different geographic location) the MNC code what we ...
2
votes
0
answers
205
views
Android TelephonyManager requestCellInfoUpdate returning old timeStamp but data was changed
I update allCellInfo in Android 10 and higher with requestCellInfoUpdate:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
tm.requestCellInfoUpdate(
context....
9
votes
0
answers
2k
views
Android TelephonyManager requestCellInfoUpdate returning stale data on API 29
I've been encountering a problem for some time using Android's TelephonyManager. We use the TelephonyManager for phone signal live surveying purposes but in an attempt to move up to targeting API 29 ...
5
votes
0
answers
486
views
Android 11 5G fetching Cell Parameters
I am trying Android 11 on network type 5G on new Android studio preview release. My aim is to fetch Cell Info details. However , the method getAllCellInfo() returns an empty/null list on emulator. All ...
0
votes
1
answer
110
views
how to create an object of CellInfo for unit testing?
I am writing unit test case, What I can't understand is how can I make a dummy object of CellinfoGsm or of any technology and test my code from it. I did read the documentation and the base class of ...
2
votes
1
answer
275
views
Why cellInfo size is zero? It is zero when I get it with TelephonyManager
I used cellInfo to get four parameters: rssi, rsrp, rsrq and sinr.
I can't find right solution to solve this problem.
Does anyone know how to get CellInfo?
I am currently using Android Emulator.
My ...
0
votes
1
answer
515
views
Android > How to get service state for both sim cards in dual sim device?
I need it for API 22 and above.
I saw that we have telephonyManager.getServiceState - but I don't know how to get it for sim1 and for sim2 exactly.
Also we have CellInfo.serviceState - but it's only ...
7
votes
1
answer
5k
views
Detect 5G NR (SA/NSA) in my Android Application
I am trying to detect 5G network. I use the telephony manager to get NETWORK_TYPE. Even if I am in 5G network coverage and my phone shows 5G, I do not get NETWORK_TYPE_NR. The NETWORK_TYPE is always ...
1
vote
1
answer
1k
views
Is there a way to make a CellInfoNr to CellSignalStrengthNr?
I'm looking for a documentation for output a inner cellinfo like RSRP, RSRQ, SINR, RSSI.
And I want to look upon 5G(New Radio) data.
cellRSRP = ((CellSignalStrengthNr) ((CellInfoNr) cellInfo)....
2
votes
1
answer
2k
views
Measuring 5G(New Radio) data
List<CellInfo> cellInfoList = telephonyManager.getAllCellInfo();
First, I got total cellInfoList, and separated to CellInfo
cellRSRP = ((CellSignalStrengthNr) ((CellInfoNr) cellInfo)....
0
votes
1
answer
750
views
How to get Cell ID and Location Area code in android 9 ( Pie ) devices without using GPS?
I tried getAllCellInfo(), getCellLocation() and getNeighboringCellInfo() to get Cell ID and Location Area Code.
I got the values(Cell ID and Location Area Code) when the GPS is turned into ON state ...
0
votes
1
answer
636
views
How to get accurate signal strength in Android application?
I use CellInfo to capture signal strength and ARFCN/UARFCN/EARFCN every second.
But, I think it is not very accurate. It is always worse -5 ~ -10 dBm than the signal strength displayed in Phone ...
6
votes
1
answer
2k
views
Collecting 5G cell data (New Radio)
After doing some digging I’ve found google source code containing 5G information related to as NR (new radio). Interestingly enough, these changes are not available on dev or pie-dev but on the master ...
1
vote
0
answers
461
views
Android how to get Earfcn data?
is there a way I could get earfcn from my device, when my app is at api <= 23?
I know I can use CellIdentityLte from CellInfo and call for getEarfcn(), how ever it's only for api 24 and above.
2
votes
0
answers
543
views
Android PhoneStateListener.onSignalStrengthsChanged()
I'd like to tracking Lte signal strength, so I've been using below method.
PhoneStateListener.onSignalStrengthsChanged(singnalStrength: SignalStrength)
telephonyManager.listen(mListener, ...
2
votes
1
answer
532
views
How to convert CellInfo timestamp to actual date?
I am using TelephonyManger.getAllCellInfo to gather information about nearby cells. I noticed that CellInfo contains a field named mTimestamp, which according to documentation is:
Approximate time ...
5
votes
0
answers
2k
views
What exactly is CellInfo and how to use getAllCellInfo to get info just about one connectivity type?
GOAL: get info (signal strength) of a particular type of connectivity (the one I'm actually using).
PROBLEM: I'm not sure to understand exactly what does reperesent CellInfo and how to extract info ...
3
votes
2
answers
2k
views
getAllCellInfo in dual SIM
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 ...
3
votes
1
answer
1k
views
getAllCellInfo - duplicate values
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 ...
3
votes
2
answers
5k
views
2G / 3G / 4G Network forcing
I'm busy writing some code to get signal strength and stuff but would like to programatically "force" my network connection to 2G / 3G / 4G so that for more conclusive measurements. I know there's a ...
1
vote
1
answer
2k
views
getAllCellInfo() returns empty list on Nexus 5x
I read all posts about getAllCellInfo() and have a similar situation like this.
The code posted below runs well on Android 6 (OnePlus One) but returns an empty list of Cellinfo on Google Nexus 5x ...
5
votes
4
answers
3k
views
getAllCellInfo() returns an empty list in Huawei Honor 7
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 ...
4
votes
0
answers
1k
views
Android: CellInfo gives me the same value for CID, MNC, MCC, LAC and signal strength
I'm trying to get the information of the cell tower connected to the phone in the Android studio.
This is my code:
telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);...
1
vote
0
answers
302
views
Android - getAllCellInfo() returns corruped values
I have to implement an android application to get information about the cellular network, like signal strength, cellId and radio access technologie.
My implementation is close to this example: https:/...
0
votes
1
answer
960
views
Android pulling LTE RSRP value
First, here's my code for getting lte rsrp (or other) values.
This code piece runs on another aysncTask.
TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
...
1
vote
1
answer
4k
views
Android get All Cell Info
I am working on 3G and 4G networks monitoring. I try to show cell infos like RSRP, RSSI and SINR for 4G (RSCP, RSSI, EcNo for 3G). I've found that the method getAllCellInfo() can do the work for me ...
1
vote
2
answers
621
views
From PSC to real location
Using TelephonyManager.getAllCellInfo() I was able to get information about neighboring cell tower including cellid, but in case of UMTS I only get the PSC value.
Is it possible to know a location of ...
1
vote
1
answer
1k
views
LTE signal ASU level always 97
I am capturing the RSSI values of LTE signals using the below code:
cInfoList = telephony_manager.getAllCellInfo()
for (CellInfo info : cInfoList){
if (info instanceof CellInfoLte) {
...
1
vote
1
answer
1k
views
Can I find MCC + MNC of network providers for muti sims
For example I have a dual sim mobile with Airtel and Vodafone sims in it. I would like to know Can we get MCC and MNC of both network providers.
I know that
Using getPhoneCount() We can know, ...
3
votes
2
answers
4k
views
how to read data inside cellInfo in telephonymanager android
I'm trying to make a program that read usual signal levels and other similar stuff and give it to the reader, I used the getAllCellInfo()
while it has some data, I can't figure out a way to extract ...
4
votes
1
answer
5k
views
Is PSC part of global Cell ID?
While on WCDMA networks getNeighboringCells() method returns a collection of PSC values (other are invalid). I guess this means that I should use rest of identifier values from current cell and PSC (...
-1
votes
1
answer
44
views
interpretation of List<NeighboursCellInfo> informations
i developed a mini application that get back the neighbours cells informations, i used telephonymanager class.
I got the information bellow, my problem is that i cant interpret its :
07-03 10:...
0
votes
0
answers
341
views
Get neighboring cell operator names on Android
I am working a little with the TelephonyManager.getAllCellInfo(). I do receive a list of the neighboring cells in the form of List<CellInfo>. However, I can only get the name of the currently ...
0
votes
1
answer
1k
views
The method getAllCellInfo() is undefined for the type TelephonyManager [Android]
Using the following code, I'm trying to get the available cell information:
import android.telephony.CellInfo;
TelephonyManager telephonyManager = (TelephonyManager)context.getSystemService( context....
0
votes
1
answer
422
views
Get location name in android without internet
There are several methods to get location name using lon&lat like GeoCoder or GoogleMap API.
But these methods need to internet for their job!.
is there any way to get location name without ...
0
votes
2
answers
733
views
How to display all available cells on a galaxy nexus (4.3)
My employer gave me a femto-cell and currently i am trying to figure if my galaxy-nexus can access the femtocell. As i cant force my phone to use this specific cell and it automatically always uses ...
5
votes
3
answers
7k
views
onCellInfoChanged() callback is always null
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 ...
3
votes
1
answer
3k
views
Using CellSignalStrengthGsm only gives Integer.MAX_VALUE
after seeing that question and the answers (thanks by the way) I wrote this code wich is pretty much the same as in the answers:
try {
List<CellInfo> cellInfoList = telephonyManager....
0
votes
1
answer
1k
views
How to get cellid through phonegap
I am creating an app using sencha touch. After that building this with phonegap so that it can be available in multiple platform. Now I need to find out a way to get user's nearest cell tower location....