I have to get the l开发者_Python百科ocation (lat & lon) of the phones near my phone. Is there any way to do this. If so please suggest.
No. Android phones do not broadcast their location to the entire world. You could try to find the location of phones with your software installed near your phone, by storing coordinates on a server and doing a query using R-trees or quadtrees or something, but you can't query for all android phones.
I think your best (and potentially only) option would be to leverage off of the Google Latitude API. Users of Latitude and/or your app will broadcast their locations, which will then be discoverable for your app via the Latitude API.
精彩评论