alcaamado alcaamado - 1 year ago 114
Java Question

How to detect if device support EAP-SIM

For my application, I need to detect if my device support EAP-SIM.
Anyone knows if this is possible or not?
Thanks in advance.

Answer Source

Ok, finally i get the solution for my problem:

public static boolean isEAPSIMSupported() {
    ActivityManager manager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE);
    for (ActivityManager.RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) {
        if("org.simalliance.openmobileapi.service.SmartcardService".equals(service.service.getClassName())) {
            Log.i(WifiHelper.class, "EAP-SIM Supported");
            return true;
    Log.i(WifiHelper.class, "EAP-SIM not Supported");
    return false; 
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download