I have written my own Android code
Behind the curtain, using the DefaultHttpClient class to access my code is Scarf. In fact, I would like to know how I can use the ProviderTestCase2 class to block any HTTP requests and return a predefined string "response" instead.
I'm assuming that to do something like this, I can either mock in the ContentResolver or context , but I need some guidance. .