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.
  • Multiple concurrent network connections.
  • Transparent disk and memory response caching with standard HTTP cache coherence.
  • Support for request prioritization.
  • Cancellation request API. You can cancel a single request, or you can set blocks or scopes of requests to cancel.
  • Ease of customization, for example, for retry and backoff.
  • Strong ordering that makes it easy to correctly populate your UI with data fetched asynchronously from the network.
  • Debugging and tracing tools.

Volley excels at RPC-type operations used to populate a UI, such as fetching a page of search results as structured data. It integrates easily with any protocol and comes out of the box with support for raw strings, images, and JSON. By providing built-in support for the features you need, Volley frees you from writing boilerplate code and allows you to concentrate on the logic that is specific to your app


The easiest way to add volley library to android studio :

1-download git from here and install it: https://git-scm.com/download/win

2-Create a folder under C: and name it  downloadVolley

3-open Git CMD and write  cd c:\downloadVolley  and hit enter button


4-Write this line :  git clone https://android.googlesource.com/platform/frameworks/volley  and hit enter button.



4-When the download is completed open android studio .

5- Click [File] --> [New] -->[Import Module]   and select the library under "c:\downloadVolley".



6-Open build.gradle in your project and add the dependency: compile project(":volley").

and that's it :D


Import Android volley to Android Studio
include ':app', ':volley'
compile project(":volley")
include ':app', ':3rd_party:volley'
compile project(":3rd_party:volley")
Best way to incorporate Volley (or other library) into Android Studio project
apply plugin: 'android-library'
dependencies {compile 'com.mcxiaoke.volley:library-aar:1.0.0'}
Add Volley to An Android Studio Project



Axact

Hssan Riahi

Hssan Riahi is a Web Developer, designer and a programmer.He loves experimenting with technology and codes.

Post A Comment:

1 comments:

  1. Easy "water hack" burns 2 lbs OVERNIGHT

    Over 160 thousand women and men are losing weight with a simple and secret "liquids hack" to burn 1-2 lbs every night in their sleep.

    It is effective and works with everybody.

    Here's how to do it yourself:

    1) Go get a glass and fill it half the way

    2) And now do this weight losing hack

    and you'll be 1-2 lbs lighter in the morning!

    RépondreSupprimer