2014-10-20 44 views

回答

0

这可能与thisthis有关,它们是rev中常见问题的解决方案。 22更新\ 更新:

看起来这个代码是用来获取IMEI的。

String deviceId=Util.getDeviceId(getApplicationContext()); 

用它来代替:

TelephonyManager telephonyManager = (TelephonyManager) context 
       .getSystemService(Context.TELEPHONY_SERVICE); 
     String deviceId = telephonyManager.getDeviceId(); 

我觉得这个问题是这个页面你是指没有显示所有代码,可能仍然存在一类的Util:

public static class Util { 
     public static String getDeviceId(Context context) { 
      TelephonyManager telephonyManager = (TelephonyManager) context 
        .getSystemService(Context.TELEPHONY_SERVICE); 
      return telephonyManager.getDeviceId(); 
     } 
    } 

然后它解释了为什么他们使用:Util.getDeviceId(getApplicationContext())通常。只需将此代码复制到您的类InstalledAppData。编译器将清理。

+0

正在更新,将在其更新修订时进行检查。 希望它能修复它! – Jack 2014-10-20 09:33:01

+0

请参阅我的更新信息。可能是这可以帮助你 – kemdo 2014-10-20 10:03:49