android download image demo,used async http on and
no vote
android download image demo,used async http on android
example:
String[] allowedContentTypes = new String[] { "image/png",
"image/jpeg" };
client.get(" http://m.synjones.mobi/ocsp/logo/23010001xcv.png ", new BinaryHttpResponseHandler(allowedContentTypes) {
@Override
public void onSuccess(byte[] imageData) {
// Successfully got a response
try {
if (dialog != null)
dialog.dismiss();
dialog = null;
} catch (Exception