I have an app which returns the road that somebody is on and I would like to find out whether they are on a different road to the one they started on.
For example, I have
userLoc = address.getThoroughfare();
which gets their location and stores it, I would like to store that as a string to something like String firstLoc
and then if(userLoc.equals(firstLoc))
Sorry if I was not clear enough, I am asking how to set a String to the first value of userLoc
, so I may check it against in the future.