I am making an app in which i have to get the lac and cell id . I am using
private PhoneStateIntentReceiver mPhoneStateReceiver;
ServiceState state = mPhoneStateReceiver.getServiceState();
int cid = state.getCid();
int lac = state.getLac();
and its giving error that PhoneStateIntentReceiver cannnot resolved to type and getcellid and getlac is also giving errorthat getcellid is undefined for ServiceState
Any help will be appreciated.
use this to get cid and Lac
with permission