2014-10-20 52 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