Before I thought up the bottle-in-the-pants trick, I would stop my bike at the edge of the sidewalk and dirt, and kneel facing away from the road to do my business; The bike offered me some hiding from traffic in cars, and it looked like I was working on the bike. I still waited until there were no pedestrians around.