mdsami / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

Images doesn't load with https(self-singed certificate) #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use url with https (self-signed certificate)
2.
3.

What is the expected output? What do you see instead?
In current situation image doesn't load, as it should have been loaded. 

What version of the product are you using? On what operating system?
android-query-0.21.7.jar on android 2.2

Please provide any additional information below.
I am using images in listview (ViewHolder Pattern) and my server is https with 
self-signed certificate, none of my images are loading.

Original issue reported on code.google.com by nishant....@raweng.com on 26 Apr 2012 at 3:39

GoogleCodeExporter commented 8 years ago
Try this:

Set your own SocketFactory:

http://android-query.googlecode.com/svn/trunk/javadoc/com/androidquery/callback/
AbstractAjaxCallback.html#setSSF(SocketFactory)

Check here to make your own SocketFactory:
http://stackoverflow.com/questions/1217141/self-signed-ssl-acceptance-android

Original comment by tinyeeliu@gmail.com on 26 Apr 2012 at 5:55