Comments (9)
@bryant1410 surely I will add that.
from fast-android-networking.
@Boyfox we will add the feature of merging two requests in the upcoming release.
from fast-android-networking.
@bryant1410 Thanks for pointing out this.
I have updated the Readme.md file.
- OkHttpClient can be customized for every request easily.
- Complete analytics of any request can be obtained.
- Getting current bandwidth and connection quality can be obtained to decide logic of code.
- Executor can be passed to any request to get response in another thread.
- Single library for all type of networking.
- Prefetching of any request can be done so that it gives instant data when required from cache.
- All types of customization is possible
from fast-android-networking.
And do you have any performance comparison with Retrofit?
from fast-android-networking.
@bryant1410 : performance is same as both uses OkHttp but Android Networking gives some extra features.
from fast-android-networking.
You can give a performance test to probe that. And to pretend that people use your library.
from fast-android-networking.
If you can create performance test comparing this library with Volley or Retrofit, it will be better i think. This library is looks promising with a lot of features in a single library, but of course as a developer we need to make our application is good in performance too. So we need to make sure the performance of each library we used.
from fast-android-networking.
- and very easy to using and fast, very comfortable to developers!. Thank you @amitshekhariitbhu for great library, need recommend this is for Google, need add this library to android such as default http library. And need add some functionalities to this library such as : adding dependency executing http request and communication its, and managing response results with hierarchy. For example send request1 with request2 in parallel and if results both ok then do execute request4 otherwise call to callback. This is great functions and exists in SWIFT(for ios developers).
from fast-android-networking.
My Code for simple get method is not working it is give me error
url="http://dev.efurtherance.com/rcis_school_new/webservice/system/all"
param=school_code
AndroidNetworking.get("http://dev.efurtherance.com/rcis_school_new/webservice/system/all")
.addQueryParameter("school_code", "RCISTHANE")
.setTag("test")
.setPriority(Priority.LOW)
.build()
.getAsJSONArray(new JSONArrayRequestListener() {
@OverRide
public void onResponse(JSONArray response) {
// do anything with response
Log.e("resp", String.valueOf(response));
}
@Override
public void onError(ANError error) {
// handle error
Log.e("resp", String.valueOf("error"));
}
});
/////////////////////////////////////////////////
And code for upload image file also not working it gives me connection error
url="http://dev.efurtherance.com/rcis_school_new/webservice/teacher/update"
params=profile_image(image file),action,reference;
AndroidNetworking.upload("http://dev.efurtherance.com/rcis_school_new/webservice/teacher/update")
.addMultipartFile("profile_image", new File(imgpath))
.addMultipartParameter("action", "updateprofileimage")
.addMultipartParameter("reference","T1038")
.setPriority(Priority.HIGH)
.build()
.setUploadProgressListener(new UploadProgressListener() {
@OverRide
public void onProgress(long bytesUploaded, long totalBytes) {
// do anything with progress
}
})
.getAsJSONObject(new JSONObjectRequestListener() {
@OverRide
public void onResponse(JSONObject response) {
// do anything with response
Log.e("resp", String.valueOf(response));
}
@Override
public void onError(ANError error) {
// handle error
Log.e("resp", String.valueOf("error"));
if (error.getErrorCode() != 0) {
// received error from server
// error.getErrorCode() - the error code from server
// error.getErrorBody() - the error body from server
// error.getErrorDetail() - just an error detail
Log.e("onError errorCode : ", String.valueOf(error.getErrorCode()));
Log.e("onError errorBody : ", String.valueOf(error.getErrorBody()));
Log.e("onError errorDetail : ", String.valueOf(error.getErrorDetail()));
// get parsed error object (If ApiError is your class)
} else {
// error.getErrorDetail() : connectionError, parseError, requestCancelledError
Log.e("onError errorDetail : ", String.valueOf(error.getErrorDetail()));
}
}
});
from fast-android-networking.
Related Issues (20)
- Unable to use in new Android Project HOT 1
- Could not find package library
- AndroidNetworking.initialize(getApplicationContext()); Not working HOT 14
- Could not find com.amitshekhar.android:android-networking:1.0.2. HOT 5
- https://github.com/MindorksOpenSource/android-mvp-architecture
- Seri
- Lib is missing? Can't fetch v1.0.2 with gradle. See screenshot. HOT 1
- Failed to resolve: HOT 11
- Error building project HOT 4
- Networking
- ANRequest unregister `requestListener` HOT 1
- Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'. HOT 8
- How can I get the Body Parameters sent with request.
- i cannot import AndroidNetworking Class HOT 2
- AndroidNetworking class is not being imported HOT 4
- Can we get an Androidx Update to this?
- Repository down?
- I'm getting this error Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
- Regarding Fast Android Networking latest features support and new update HOT 2
- Failed to resolve HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fast-android-networking.