How to get the user Home/Work location for a user in Android

前端 未结 6 606
长情又很酷
长情又很酷 2020-12-08 15:00

Im developing an app that brings the user a quick list of \"info\" items but i want to set an options so that he receives this items as notifications when he is leaving home

6条回答
  •  执笔经年
    2020-12-08 15:18

    You could detect Wifis and assign them to a place (Home/Work)

    (I have never tried anything like this but this might help: http://developer.android.com/reference/android/net/wifi/WifiManager.html#startScan(), http://developer.android.com/reference/android/net/wifi/WifiManager.html#getScanResults())

提交回复
热议问题