[안드로이드] 내 기지국 위치 확인 하기 (Cell ID-CID, LAC 찾기)
소스 추가 TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); GsmCellLocation location = (GsmCellLocation) tm.getCellLocation(); int cellID = location.getCid(); int lac = location.getLac(); TextView mTextView = (TextView) findViewById(R.id.textView); mTextView.setText("Cell ID : " + String.valueOf(cellID) + "\n LAC : " + String.valueOf(lac)); 권한 추가 레이아웃 추가
2014. 3. 21. 10:12