can an app be written to get the approximate location of a mobile device using only mobile signal strength from different mobile towers? I mean is this data accessible to developers or restricted to the service provider?

有帮助吗?

解决方案

http://developer.android.com/guide/topics/location/strategies.html

Your can obtain either GPS or Network location, or two at a time. The permission to get location from Cell Towers or WI-FI is:

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

Just register a listener and get the updates

LocationManager manager = (LocationManager)
            context.getSystemService(Context.LOCATION_SERVICE);

manager.requestLocationUpdates(
            LocationManager.NETWORK_PROVIDER, 60, 10, listener);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top