Many people has the habit of torturing and beating the stray dogs. If you are one of them please don't do this, they have already lost their homes and wandering here and there for livelihood.
They usually rely on road kills and other carrion as well as discarded human food in order to survive. This could lead to stomach upset or even poisoning. They are accustomed to humans providing food, water and shelter and may struggle to find these thing on their own.

These stray dogs never attack you unless you harrass them first. They are so loyal and calm that if you feed them once they will always remember you if your are in danger they protect you and will never attack you.
They are destitute and speechless animals please don't tease them, do not beat or kill them.

If you see them in your locality turn your hands on their head with love. Give them something to eat. 
They are the creature that if you love them, they will love you more than their life.