HOW TO DETECT IF DEVICE SUPPORT EAP-SIM

sandy taylor

Total Post:46

Points:324
Posted by  sandy taylor
 1061  View(s)
Ratings:
Rate this:
For my application, I need to detect if my device support EAP-SIM. Anyone knows if this is possible or not? Thanks in advance.
  1. Monaj Singh

    Post:41

    Points:287
    Re: How to detect if device support EAP-SIM

    Ok, finally i get the solution for my problem:

    • If anyone is interested:
    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; }


    Thanks

      Modified On Apr-08-2018 11:54:57 PM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!