getSimState is not working in SIM less tablet in Android?
<p>I am working in an application to detect the SIM exists or not, In device its working fine. But when I am working with SIM less Galaxy Tablet, then its not giving me correct results.</p>

<p>I am getting SIM_STATE_READY in below method, but i have sim less tablet:</p>

<pre><code>public static String checkSIMState(Context appContext){
        String SIM_State=null;
        TelephonyManager telMgr = (TelephonyManager) appContext.getSystemService(Context.TELEPHONY_SERVICE);
        int simState = telMgr.getSimState();
                switch (simState) {
                    case TelephonyManager.SIM_STATE_ABSENT:
                        SIM_State = SIM_STATE_ABSENT;
                        // do something
                        break;
                    case TelephonyManager.SIM_STATE_NETWORK_LOCKED:
                        SIM_State = SIM_STATE_NETWORK_LOCKED;
                        // do something
                        break;
                    case TelephonyManager.SIM_STATE_PIN_REQUIRED:
                        SIM_State = SIM_STATE_PIN_REQUIRED;
                        // do something
                        break;
                    case TelephonyManager.SIM_STATE_PUK_REQUIRED:
                        SIM_State = SIM_STATE_PUK_REQUIRED;
                        // do something
                        break;
                    case TelephonyManager.SIM_STATE_READY:
                        SIM_State = SIM_STATE_READY;
                        // do something
                        break;
                    case TelephonyManager.SIM_STATE_UNKNOWN:
                        SIM_State = SIM_STATE_UNKNOWN;
                        // do something
                        break;
                }
                return SIM_State;
    }
</code></pre>

<p>Also, I tried with the method to get the phone number, it is also giving me number : </p>

<pre><code>TelephonyManager phoneManager = (TelephonyManager)appContext.getSystemService(Context.TELEPHONY_SERVICE);
        number = phoneManager.getLine1Number();
</code></pre>

<p>Please suggest me how can I check the existence of SIM in a SIMless tablet.</p>
