The Sufis have a saying: "Praise Allah, and tie your camel to a post." This brings together both parts of practice: pray, yes, but also make sure that you do what is necessary in the world.
Prayer and action...can never be seen as contradictory or mutually exclusive. Prayer without action grows into powerless pietism, and action without prayer degenerates into questionable manipulation.
Action is the normal completion of the act of will which begins as prayer. That action is not always external, but it is always some kind of effective energy.
The things, good Lord, that we pray for, give us the grace to labour for', as Sir Thomas More expressed it. The inner voice of prayer expresses itself naturally in action, just as the inner voice of my brain guides all my bodily actions.
God doesn't just miraculously and physically intervene in the whole process, so if I just go and drop a bunch of chemicals and herbicides that leach into the groundwater, I can pray all day to keep my child healthy, but if the herbicides gone into the groundwater come up my well, my child's going to drink that water.
We must alter our lives in order to alter our hearts, for it is impossible to live one way and pray another.