flipkart

Wednesday, September 18, 2013

Find out cell tower Location using Android API

How to find out cell tower Location in Android pragmatically?

The following code will show the your cell tower location showing

        LocationManager locationmanager;
        String context=Context.LOCATION_SERVICE;
        locationmanager=(LocationManager) getSystemService(context);
        String provider=LocationManager.NETWORK_PROVIDER;
        Location location= locationmanager.getLastKnownLocation(provider);
        String latitude=location.getLatitude();
        String longitude=location.getLongitude()