Sometimes have no choice
I try never to ride on sidewalks unless it is a multifunctional sidewalk where boh are allowed. I will say I'm being forced to do it because the road has no bike lane and very busy making it dangerous. Then I ride cautiously and slow down for all walkers. I don't use a bell but do say passing on the left or right. If that doesn't work I just stop until there passed me.