Giter Site home page Giter Site logo

Comments (9)

amitshekhariitbhu avatar amitshekhariitbhu commented on April 29, 2024 2

@bryant1410 surely I will add that.

from fast-android-networking.

amitshekhariitbhu avatar amitshekhariitbhu commented on April 29, 2024 1

@Boyfox we will add the feature of merging two requests in the upcoming release.

from fast-android-networking.

amitshekhariitbhu avatar amitshekhariitbhu commented on April 29, 2024

@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.

bryant1410 avatar bryant1410 commented on April 29, 2024

And do you have any performance comparison with Retrofit?

from fast-android-networking.

amitshekhariitbhu avatar amitshekhariitbhu commented on April 29, 2024

@bryant1410 : performance is same as both uses OkHttp but Android Networking gives some extra features.

from fast-android-networking.

bryant1410 avatar bryant1410 commented on April 29, 2024

You can give a performance test to probe that. And to pretend that people use your library.

from fast-android-networking.

hendrawd avatar hendrawd commented on April 29, 2024

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.

sm-tester avatar sm-tester commented on April 29, 2024
  • 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.

kunalmangela avatar kunalmangela commented on April 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.