Question Detail

How to get the user current location based on sim Network location in Android

5 years ago Views 1587 Visit Post Reply

Through GPS we can get users location. When use not enabled GPS then how can we get users current location in Android.

Is there any way to get SIM Network location it ca be not exactly but approximate.

Please help, How get users current location based on SIM Location.?


Thread Reply

Anonymous

- 5 years ago

You can't get exact Current Location But you can know almost or nearby Mobile Network Connection Location By TelephonyManager

TelephonyManager telephoneManager = (TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE);
String countryCode = telephoneManager.getNetworkCountryIso();

 

TelephonyManager More Questions