universal image loader downlaod from https with post method
阿新 • • 發佈:2018-12-27
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.