I want to find nearest cell tower location. I tried
private class ServiceStateHandler extends Handler {
public void handleMessage(Message msg) {
switch (msg.what) {
case MY_NOTIFICATION_ID:
ServiceState state = mPhoneStateReceiver.getServiceState();
System.out.println(state.getCid());
System.out.println(state.getLac());
System.out.println(mPhoneStateReceiver.getSignalStrength());
break;
}
}
}
I tried this link but it is not working for me How to find user location using cell tower?
I think I am doing something wrong. Because this link answer is working for other person I did the same code as shown in link I am using 2,2 google api to create project But I am not able to get cell tower location