I am developing an app who makes basically the following things: when the GPS is enabled it takes the current position and calculates the distance between the location took from the location manager and a fixed position, then when the distance is lower than a value, for example 10 meters, the app automatically open another Activity
containing the informations about the location reached, the problem is that when the user is visualizing the info page he remains in the range and the previous activity continues opening the same activity with informations, how can i prevent this problem? I need to stop the method that open the new Intent
when the info are visualized and then restart when the user is back in the distance calculation Activity
.
mardi 26 mai 2015
Location Based activity, opening intent according to the distance
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire