Sunday, July 1, 2012

Retrieve cell id for location, sign it for S40

How to retrieve cell id :

Here is the code to retrieve cell id, to know your location :

getCellId() {
//for s40 series
id = System.getProperty("Cell-ID");
//for s60 series
id = System.getProperty("com.nokia.mid.cellid");
}

This code will works only for s40 3rd edition fp1, and s60 3rd edition fp2.
for s60 fp2 devices, it shows you easily the cell id of device to know your location. But for s40 FP1, it gives you null value. To get the cell id, we need a certification for it.

No comments: