You're excused.
Maybe this is the world's way of telling you that you should tell her in person.
There's a certain etiquette that needs to be followed if you insist on looking straight down while walking in a crowd.
Do what you will on the sidewalk, but don't text while there's a possibility of a car hitting you. Simple.
Pretty soon we'll have a society full of people standing still and texting, lest they get slapped with an $85 ticket.