how to detect if PIN code is required to unlock sim?
There is a "SIM card lock" option in android "setting/Location & security settings" page. It's necessary to input a PIN code after booting if the option is set. Is there any programmatic method to detect if PIN is required ? (not current sim state but the setting option value ex: true/false) You can use the following class: TelephonyManager http://developer.android.com/reference/android/telephony/TelephonyManager.html You do not instantiate this class directly; instead, you retrieve a reference to an instance through Context.getSystemService(Context.TELEPHONY_SERVICE) TelephonyManager manager