I would like to detect a user's home place, and whenever the user leaves and arrives home, do something in my application. I was searching for so long for a questing with this specific problem, but all the 'home' related questions are to the home button of the device.
I have few options, as far as i can tell :
- Ask the user to give his house address
- Use FenceApi or implement my own LocationListener and check every location received, and see if it's within few meters radius from my house.
Obviously, asking the user for his house isn't really intelligent. Anyone knows how can i detect his house without asking for it ? I was thinking of storing locations, and mapping the hits of the locations.
This is more of an abstract question, so i didn't attach any code.