Ah, but to what end but the independence of India, by arms if necessary?
While Gandhi was truly pacifist and non-violent, he was neither passive nor stupid. In the day and age when there was no tv no Internet, Gandhi knew how to mobilize Indian masses in a highly organized way. Gandhi knew that British power rested on 2 things... economy and military. He asked Indians to stop paying taxes and stop buying British manufactured good (instead make their own) to hit British economy. He urged Indians to join British army to fight WW1 even though he was against violence.....so that Indians get trained in modern military tactics and learn the use of fire arms. That way the base of military power would shift from the hands of the British over to Indians.
Gandhi did not intend to use the firearms or the Indian military against the British but by end of WW2 there were 3 million highly trained Indian soldiers who have seen combat in Europe, Africa and South East Asia. One word from Gandhi and they could potentially wipe out the British Empire. And 2 years after WW2 Britain decided to give India independence.