VolleySimple is library that support simplest use of Main Volley lib provided by google.
sometime you want to make clean code with less lines of code so i start from this point to provide.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
To get a Git project into your build:
Step 1. Add the JitPack repository to your build file (Gradle)
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Step 2. Add the dependency in app/build.gradle
dependencies {
implementation 'com.github.hosamazzam:VolleySimple:v1.0.2'
}
[asyncStringGet]
VolleySimple.getInstance(this).asyncStringGet("your url", new VolleySimple.NetworkListener<String>() {
@Override
public void onResponse(String response) {
}
@Override
public void onFailure(Exception e) {
}
});
[asyncImageGet]
VolleySimple.getInstance(this).asyncImageGet("your url", new VolleySimple.ImageListener() {
@Override
public void onResponse(Bitmap bitmap) {
}
@Override
public void onFailure(Exception e) {
}
});
- String Request ( GET , POST).
- JsonObject Request ( GET , POST).
- JsonArray Request ( GET , POST).
- Async and sync requests (sync should Not use in UI main Thread).
- Image Downloaded.
- Singleton queue provided.
- Default progress dialog can use or your owned dialog.
This project is licensed under the MIT License - see the LICENSE.md file for details