I am making an app that when user clicks on toggle button , mobile data gets on , and when clicks another time data gets off, what permissions and codes I should use?
I tried many codes from developer android site and other sites but non of them worked in the way I want.