Finding the Cellid from Java ME on Sony Ericsson Devices
Sony Ericsson are really getting it together on the Java ME front!!
List of Network Properties
com.sonyericsson.net.mcc
- Home Mobile Country Code. Three digits.
- E.g. "240"
com.sonyericsson.net.mnc
- Home Mobile Network Code. Two or three digits.
- E.g. "01"
com.sonyericsson.net.cmcc
- Current (Network) Mobile Country Code. Three digits.
- E.g. "240"
com.sonyericsson.net.cmnc
- Current (Network) Mobile Network Code. Two or three digits.
- E.g. "01"
com.sonyericsson.net.isonhomeplmn
- Returns "true" when the ME is camping on the home PLMN (the mnc of the network matches the mnc of the SIM), "false" otherwise. Returns "false" if there is no network.
- E.g. "true"
com.sonyericsson.net.rat
- Returns the current (if any) Radio Access Technology, RAT. Possible values are "WCDMA", "GSM" or null (in flightmode).
- E.g. "GSM", null
com.sonyericsson.net.cellid
- Returns the identity of the cell the ME is currently camping on (if any). For GSM network this is a four digit number and for WCDMA network this is a eight digit number. Returns null when the radio is not enabled.
- E.g. "0123", "00192345", null
com.sonyericsson.net.lac
- Returns the four digit location area code the ME is currently camping in (if any), or null.
- E.g. "0064", null
com.sonyericsson.net.status
- Network status, "Home PLMN", "Available", "Preferred", "No Network", null
- E.g. "Home PLMN"
[Via the Sony Ericsson Developer's Forum.]
Update: More recent information here.
List of Network Properties
com.sonyericsson.net.mcc
- Home Mobile Country Code. Three digits.
- E.g. "240"
com.sonyericsson.net.mnc
- Home Mobile Network Code. Two or three digits.
- E.g. "01"
com.sonyericsson.net.cmcc
- Current (Network) Mobile Country Code. Three digits.
- E.g. "240"
com.sonyericsson.net.cmnc
- Current (Network) Mobile Network Code. Two or three digits.
- E.g. "01"
com.sonyericsson.net.isonhomeplmn
- Returns "true" when the ME is camping on the home PLMN (the mnc of the network matches the mnc of the SIM), "false" otherwise. Returns "false" if there is no network.
- E.g. "true"
com.sonyericsson.net.rat
- Returns the current (if any) Radio Access Technology, RAT. Possible values are "WCDMA", "GSM" or null (in flightmode).
- E.g. "GSM", null
com.sonyericsson.net.cellid
- Returns the identity of the cell the ME is currently camping on (if any). For GSM network this is a four digit number and for WCDMA network this is a eight digit number. Returns null when the radio is not enabled.
- E.g. "0123", "00192345", null
com.sonyericsson.net.lac
- Returns the four digit location area code the ME is currently camping in (if any), or null.
- E.g. "0064", null
com.sonyericsson.net.status
- Network status, "Home PLMN", "Available", "Preferred", "No Network", null
- E.g. "Home PLMN"
[Via the Sony Ericsson Developer's Forum.]
Update: More recent information here.
~Comments~
~Add Comment~


my friend i want your help to update my device
any idea why does a cellphone camp on GSM instead of WCDMA network? and the other way around? while they are capable to connect to either one of them..
i've tried 'com.sonyericsson.net.cellid', sometimes i got GSM network, and WCDMA the other time
thanks :)
Hi sandymc,
Sorry, I'm not sure. Moving between networks has probably been highly optimised by the device makers because it is a power hungry requirment.
What is exactly location area code? I see it changes virtually with every cell id change.
is there any sony ericsson software available in internet to get network parameter...
i have used System.getProperty("com.sonyericsson.net.cellid")
for my sony ericsson w810i phone it returned null
Hi again Jason and thank you for answering my previous question :)
I have tested above codes are working fine with Sony Erricson devices. But the same code doesn't work on symbian devices like nokia. Example: http://wiki.forum.nokia.com/index.php/CS000947_-_Getting_Cell_ID_in_Java_ME
Nokia Forum has in-depth discussion on this, but they haven't found any solution to retrieve cellID with J2ME on symbian devices. Only native C++ apps can access those LBS function. do you have any thought on this?
thanks :)
Unfortunately we've never got the cell-id to work on either S40 or S60. We have always used JSR-179 (GPS) for location on Nokia S60 devices.
I have tested the same code in my Sony Erricson W300i.
it returns "null"
is it device specific or company specific(i.e. diff property for nokia,SE,moto..)
how can i get it in my SE?
The W300i is quite an old phone so it might not have support for these features. Also, I have heard that some network operators used to ask phone manufacturers to disable these features.
Hello, my cellID returns 006f761e, that's right? is hex number? need i to cast this?
thanks!!
Sorry Raphael, I'm not sure what format the cellID comes in.
On SonyE the cell ID is indeex a hex number. Just convert to int and it is identical to the cell number (eg. returned by Nokia and used in cell databases)
is gprs connection required to access a cell id.. pls reply..
The cellid comes from the network operator so the device must be connected to the network but I don't think you need to be connected via GPRS in order to retrieve it.
thanks jason
i am having sony erricson w302 . the above commands return null. my search tells me that my cell needs to have atleast jp 7.3 . how do i knw that if my phone supports jp 7.3 or it is not necessary
http://en.wikipedia.org/wiki/Sony_Ericsson_Java_Platform
u need a SE JP7/ JP8 higher device to get the above
--------------------
no, not human :p