1. 程式人生 > >universal image loader downlaod from https with post method

universal image loader downlaod from https with post method

Map<String, String> headers = new HashMap<String, String>();
headers.put(“key”, Commons.CURRENT_ACTIVE_PROFILE.getKey());
headers.put(“secret”, Commons.CURRENT_ACTIVE_PROFILE.getSecret());

displayImageOptions = new DisplayImageOptions.Builder()
.extraForDownloader(headers)

下載大頭照的:

public AuthImageDownloader(Context context, int connectTimeout,

呼叫的主程式:

.imageDownloader(new AuthImageDownloader(context, 10000, 10000))

PS:
W/ImageLoader: Try to initialize ImageLoader which had already been initialized before. To re-init ImageLoader with new configuration call ImageLoader.destroy() at first.