2012-07-25 119 views
7

我想當前GET塔位置的地址得到網絡運營商當前塔位置像諾基亞手機在主屏幕上一樣顯示mobile.i運營商名稱和地址,塔顯示當前塔位置要低於喜歡:如何在Android

SIM運營商的名稱

CURRENT TOWER地址

我想要得到這些在android上離線的細節!

任何人都可以幫助我非常感謝!

+0

檢查此問題[獲取細胞塔位置 - Android](http://stackoverflow.com/questions/6668271/get-cell-tower-locations-android) – BBdev 2012-07-25 05:29:25

+0

@BBdev感謝您閱讀我的問題,我已經嘗試它不是返回當前的塔地址! – 2012-07-25 05:31:55

回答

0

去其Android手機當前連接的當前網絡運營商的名稱,最簡單的方法是讓android.telephony.TelephonyManager的保持,並從那裏得到它:

TelephonyManager telephonyManager =((TelephonyManager) Context.getSystemService(Context.TELEPHONY_SERVICE)); 
String operatorName = telephonyManager.getNetworkOperatorName(); 

字符串simName = telephonyManager.getSimOperatorName();