Note that there are some explanatory texts on larger screens.

plurals
  1. POunable find Cellid,MCC,MNC,LAC value in nokia e71 through J2ME code
    text
    copied!<p>How can I get cell id, MCC, LAC for Nokia E71?</p> <p>I am using below code but unable find the cellid, MCC ,LAC value.</p> <p>I try to find this value through j2me code.</p> <p>Please help me to find this value</p> <p>Code to get cell id:</p> <blockquote> <p>public static String getCellId() { String out = ""; try {</p> <pre><code> out = System.getProperty("Cell-ID"); // if (out == null || out.equals("null") || out.equals("")) { // out = System.getProperty("CellID"); // } // if </code></pre> <p>(out == null || out.equals("null") || out.equals("")) { //<br> System.getProperty("phone.cid"); // }</p> <pre><code> if (out == null || out.equals("null") || out.equals("")) { out = System.getProperty("com.nokia.mid.cellid"); } } catch (Exception e) { return out == null ? "" : out; } return out == null ? "" : out; } </code></pre> </blockquote> <p>Code to get LAC:</p> <blockquote> <pre><code>public static String getLAC() { String out = ""; try { if (out == null || out.equals("null") || out.equals("")) { out = System.getProperty("com.nokia.mid.lac"); } } catch (Exception e) { return out == null ? "" : out; } return out == null ? "" : out; } </code></pre> </blockquote> <p>Code to get IMSI:</p> <blockquote> <pre><code> public static String getIMSI() { String out = ""; try { out = System.getProperty("IMSI"); if (out == null || out.equals("null") || out.equals("")) { System.getProperty("phone.cid"); } if (out == null || out.equals("null") || out.equals("")) { out = System.getProperty("com.nokia.mid.mobinfo.IMSI"); } if (out == null || out.equals("null") || out.equals("")) { out = System.getProperty("com.nokia.mid.imsi"); } } catch (Exception e) { return out == null ? "" : out; } return out == null ? "" : out; } </code></pre> </blockquote> <p>Code to get MCC:</p> <blockquote> <pre><code>public static String getMCC() { String out = ""; try { if (out == null || out.equals("null") || out.equals("")) { out = System.getProperty("phone.mcc"); } if (out == null || out.equals("null") || out.equals("")) { out = System.getProperty("com.nokia.mid.mobinfo.IMSI"); } if (out == null || out.equals("null") || out.equals("")) { out = getIMSI().equals("") ? "" : getIMSI().substring(0, 3); } if (out == null || out.equals("null") || out.equals("")) { out = System.getProperty("com.siemens.imei"); } if (out == null || out.equals("null") || out.equals(""))//getMNC() { if (out == null || out.equals("null") || out.equals("")) { out = System.getProperty("mcc"); } } } catch (Exception e) { return out == null ? "" : out; } return out == null ? "" : out; } </code></pre> </blockquote> <p>Code to get MNC:</p> <blockquote> <pre><code>public static String getMNC() { String out = ""; try { if (out == null || out.equals("null") || out.equals("")) { out = System.getProperty("phone.mnc"); } if (out == null || out.equals("null") || out.equals("")) { out = getIMSI().equals("") ? "" : getIMSI().substring(3, 5); } if (out == null || out.equals("null") || out.equals("")) { out = getIMSI().equals("") ? "" : getIMSI().substring(3, 5); } if (out == null || out.equals("null") || out.equals(""))//getMNC() { if (out == null || out.equals("null") || out.equals("")) { out = System.getProperty("mnc"); } } } catch (Exception e) { return out == null ? "" : out; } return out == null ? "" : out; } </code></pre> </blockquote> <p>u use my code or not</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload