android detect locatoin using WIFI
问题 We can detect code using gps, i want to detect location via wifi ??? how can i do that ? i want two threads simulataniously running one detecting locaiton using GPS another detecting using WIFI. 回答1: Check out this link and "public static final String NETWORK_PROVIDER " on that page. Also I think this open source project uses both gps and network location: Link . Hopefully a good example. 回答2: public class FastMainActivity extends Activity { Button searchBtn = null; Intent locatorService =