Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Android Volley support SSL?

Does anyone know whether Volley supports SSl in Android? Is there is any way to support SSL via Volley?

like image 265
Ajay Shrestha Avatar asked Sep 19 '15 21:09

Ajay Shrestha


People also ask

Does Android use SSL?

Android offers the following security to its users:An SSL certificate or HTTPS certificate protects the application code and App-server communication in public Wi-Fi zones and private VPN.

Is Android volley deprecated?

volley (lib) is not deprecated. Why would it be? More importantly, if it works, why does it matter? Deprecated doesn't necessarily mean something is bad.

What is Volley used for in Android?

Volley is an HTTP library that makes networking for Android apps easier and most importantly, faster. Volley is available on GitHub. Volley offers the following benefits: Automatic scheduling of network requests.

What is the purpose of volley?

The objective of the game is to try to make the ball touch the ground on the opponent side. When the ball is hit by a team, the members of other team hit it with their hands to prevent it from touching the ground and to send it to another teammate or to the other side of the court across the net.


1 Answers

I would like to look further @BNK 's answer. Suggest

requestQueue = Volley.newRequestQueue(getApplicationContext(), new HurlStack(null, getSSLSocketFactory()));

would be enough. Don't know why , by follow @BNK 's answer that extends createConnection , Volley create about 5 connections for reuse which observed by netstat command By just passing getSSLSocketFactory() as new HurlStack() parameter, the connection opened by Volley is reduced.

like image 127
Yeung Avatar answered Oct 12 '22 22:10

Yeung