I´m making an Android app.
So I´m starting with some instrumentation testing where I want to start with data enabled and location disabled and I want to test that a dialog asking me to enable location appears.
For my second test I want to start with data disabled and location enabled and I want to test that a dialog asking me to enable data appears.
How can I manipulate the location and data for an instrumentation test?
Thanks in advance.