Sunday Okpokor
Sunday Okpokor

Reputation: 723

knowing the network operator name in J2ME

How do I get the network operator name in an app written with J2ME?

I am recently trying to develop an app on Nokia s40 which should have an exclusive access to a particular network operator. Is there any API or library of such?

Upvotes: 3

Views: 802

Answers (1)

Baba
Baba

Reputation: 95101

There is nothing like that. But you can get the MNC and MCC Information from IMSI. With this information you can get the Operator name

Example

String imsi = System.getProperty("IMSI"); // Example 234103530089555
String mcc = imsi.substring(0,3); // 234 (UK)
String mnc = imsi.substring(3,5); // 10 (O2)

you can send the information to your database to get Country, Network Operator, Network Name and status

See http://www.numberingplans.com/?page=analysis&sub=imsinr for more information on IMSI

======= Update =====

Please note that this is dependent on phone type. Below are the different formats I know... more can still be out there.

        System.getProperty("phone.imei");
        System.getProperty("com.nokia.IMEI");
        System.getProperty("com.nokia.mid.imei");
        System.getProperty("com.sonyericsson.imei");
        System.getProperty("IMEI");
        System.getProperty("com.motorola.IMEI");
        System.getProperty("com.samsung.imei");
        System.getProperty("com.siemens.imei");
        System.getProperty("imei");

Upvotes: 3

Related Questions