/** 判断是否模拟器。如果返回TRUE,则当前是模拟器 
     * @param context 
      * @return 
 */ public static boolean isEmulator(Context context){  
         TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);  
         String imei = tm.getDeviceId();  
         if (imei == null || imei.equals("000000000000000")){  
             return true;  
         }  
         return false;  
 }

解决方案 »

  1.   

    /** 判断是否模拟器。如果返回TRUE,则当前是模拟器 
         * @param context 
          * @return 
     */ public static boolean isEmulator(Context context){  
             TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);  
             String imei = tm.getDeviceId();  
             if (imei == null || imei.equals("000000000000000")){  
                 return true;  
             }  
             return false;  
     }
      

  2.   


    不了解模拟器了吧  我去下个 安装个手机评测类的软件  imei和机型都是有的 显示的出来的