How to detect quickly if a specified URL contains an image in Android?
I have link of type http://foo.bar/w23afv
so naive approach like checking end of URL string won't work here.
How to detect quickly if a specified URL contains an image in Android?
I have link of type http://foo.bar/w23afv
so naive approach like checking end of URL string won't work here.
Check if the HTTP
Content-Type
response header starts withimage/
.