Balaji.K
Balaji.K

Reputation: 4829

Finding a phone's location from its number using GPS

I need to find the current longitude and latitude of a mobile phone based on its number with an Android app. I am able to get my own current location data, but I am unable to get my friend's location data. What do I have to do?

Upvotes: 1

Views: 7020

Answers (1)

Kurru
Kurru

Reputation: 14331

Short of having your application installed on the friends mobile and having it activate a share with friends functionality (highly recommended feature for privacy reasons) there is no way of doing this.

Your application could update a server with its current location (with time-stamp) and then the friends could merely poll this data source for the current location.

But as before, steps need to be taken to ensure that the users location isn't leaked to people who shouldn't have access to it and that only authorized friends can see a persons location.

Upvotes: 3

Related Questions