I'm trying to download an image in my Android app using the following couples lines of code
InputStream in = new java.net.URL(url).openStream();
mIcon11 = BitmapFactory.decodeStream(in);
com.squareup.picasso.Downloader$ResponseException: 302 Found
When you put the image url into a browser, it redirects to https://
Change your url in your code to https:// and it should work.
The 302 Found code is used commonly when there is a redirect happening. As is the case here. It is being redirected to the https:// protocol, and a browser would see this and check the data for the redirect url and take you there. Picasso and an InputStream will not check for the redirect code and hence not load the image, but at the same time, not return an error, because it is not a 404 not found response. A good list of HTTP response codes is found on wikipedia.
If you find the image successfully, you will get a 200 OK code returned.