In the fourth chapter of my book that discusses travel risk, I talk about how some travelers inadvertently make themselves a target by the way they dress, the jewelry they wear, and the way they walk. I want to add one item to that, and it applies whether you are traveling abroad or walking at home.
Unless you are interested in being robbed, don't use your smartphone while walking on the street. Put it away until you have arrived at your destination, and stay alert. Smartphones take your attention away from what is going on around you, and they make you an obvious mark.
If you're using its map function to know where to go, then take the time before you start walking to absorb what the map indicates. If you need to check it again, then stop in a safe place and do so without compromising your personal safety.