top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

How to get cellid from my LTE/Android phone?

+1 vote
352 views

Want to get the cellid for my app, can someone share the code for LTE-Android?

posted Aug 26, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

Try something like

TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
List<CellInfo> cellInfoList = tm.getAllCellInfo();
for (CellInfo cellInfo : cellInfoList)
{
    if (cellInfo instanceof CellInfoLte)
    {
        // Now this is your code...
    }
}

Actuallt we are iterating through the list List returned by getAllCellInfo () and checking if the CellInfo is a CellInfoLte or not

answer Aug 26, 2015 by Salil Agrawal
Similar Questions
+2 votes

I am trying to figure out the best way to get a device to only use LTE and not GSM. I want to know would it be better to write an up to attempt to force the android to stay in LTE only or in the android OS and make the change.

+1 vote

When I input usb line with my android phone into the pc , there are two disks j: and k: (type :removable disk) displayed in win7.

I can get my android phone bluetooth mac address .

import bluetooth
nearby_devices = bluetooth.discover_devices(lookup_names = True)
for addr, phoneName in nearby_devices:
 print(addr)

it is XX:XX:XX:XX:XX:XX

Now how can I write a file into the disk j: of my android phone(bluetooth mac is XX:XX:XX:XX:XX:XX )?

+6 votes

Is there any API in CallLog.Calls class to get Operator Name

+1 vote

I am using GsmCellLocation to get LAC and cell id for 3G network with below code :

mCid = gmsCellLocation.getCid() & 0xffff;
mLac = gmsCellLocation.getLac();

and is there any library or formula how to get/calculate the correct LAC and cell id for LTE network (4G) ?

+1 vote

I live in a remote location with awful reception, and a friend suggested I should get a signal booster. I can connect to LTE if I force it in my phone's Hidden Menu (LG G5) but it functions basically at the same speed as HSPA, however when I visit a big city the 4G connection kicks in on its own and at very high speeds.

I found out that my phone carrier is using Band 3 for LTE which should mean that I need a 1800 Mhz signal booster which I found on ebay, but I'd really appreciate it if someone who actually knows this stuff could take a look and say if I'm right in my choice of this signal booster.

Included are screenshots of my Phone's LTE connection details as well as the item page of the signal booster I found.
Network
Booster1
Booster2

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...