1
私は、電話機にSIMカードがなくても、AndroidのTelephonyManagerが私にロケーションエリアコードとセルIDを提供していることに気付いています。android TelephonyManagerはGSMCellILocationをバッファしますか?
cellLocation = (GsmCellLocation) mTMInstance.getCellLocation();
if(cellLocation == null)
return false;
currentCellID = ((GsmCellLocation)cellLocation).getCid();
currentLac = ((GsmCellLocation)cellLocation).getLac();
currentImsi = mTMInstance.getSubscriberId();
似たような問題に直面したことがありますか?私はfroyoでコンパイルして、Gingerbreadでアプリを実行しています。