Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
After going through the ways of calling web service calls in android.It's not recommended to use AsyncTask because of issues like device configuration change.
And Loaders are mainly used for interacting with database and Services mostly for long running operations.
Many answers says, to use libraries like Volley or Robospice or Retrofit.
What would be the most efficient one among them?
Any suggestions would be appreciated.
I came across different approaches in the past years and applied some of them in the real apps and some of them in some simple proof of concepts.
Here's my opinion:
The best option for communication with web services in Android is Retrofit + RxJava
Retrofit is compatible with RxJava. With such approach, you have clean and simple interface, you are able to handle errors and manipulate HTTP responses as Observable streams thanks to RxJava. Such approach is becoming good practice and standard for Android applications right now.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I am creating a program for Android mobiles which will query, retrieve and then process OData from an OData provider via a webservice.
Please can you tell me which toolkit is best for this? I have seen these:
odata4j
restlet
Thanks.
Restlet is very straightforward, although the performance is not the best. Check this article: Accessing oData from Android using Restlet.
odata4j might be more performant according to this answer.
Hey, I have been using restlet, it's extremely slow! I think it wouldn't be so difficult for you to write a parser yourself, there are many XML or JSON available nowadays. And consume an Odata service only needs a simple Apache Client!
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I quite new in Android developing platform (I'm frontender who has been using jQuery and now Angular2 (for 5 months) with RxJs ).
I used to code in core-Java in past for one year (6 years ago), so I'm little familiar with Java.
As I'm familiar with consuming REST API by using jQuery/Angular2 (which is really easy thing) I was wondering if there is any Android-framework to do that, or my only option is Retrofit, because I found it tangled to use.
Retrofit is your best choice if you want a direct mapping between api endpoints and Java Objects. You simply create DTOs and annotate each field with the corresponding json name.
Depending on the size and purpose of the api you may want to have a deeper control over what you send and receive, i.e. direct access to Request and Response objects. in this case, I recommend Volley library :-)
1) Retrofit use for best way coz its internally used OK HTTP .
2) Volley Used but retrofit is much better .
3) Client -server communication purpose made own HTTP Code .
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
as I've already noticed: more and more developers use RxJava for Android development.
I want to learn it. Can you recommended some Project use RxJava?
I'm pretty sure that visiting Fragmented podcast parts about RxJava (I linked them below) would be a nice start of your RxJava Development:
The RxJava show with Dan Lew (Part 1)
The RxJava show with Dan Lew (Part 2)
Jake Wharton on Testing, SqlBrite, NotRxAndroid, RxJava and Much More
Why these sites? Click on the first link and you would find there not only a player as on normal podcast page, but also many recommended by authors resources which are also explained in podcast.
Many projects with RxJava you would find on GitHub. I would recommend you these:
https://github.com/kaushikgopal/RxJava-Android-Samples
https://github.com/jhusain/learnrxjava
https://github.com/richardradics/RxAndroidBootstrap
Also take a look at GitHub page of RxJava and RxAndroid, Android specific bindings for RxJava.
Any question? Please free to ask.
Hope it helps
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am in the process of porting my iOS app to Android, and am now in need of a simple to use asynchronous class set to download JSON data and images.
For iOS I am using AFNetworking which is an amazing tool. Is there anything like that for Android?
There's loop j's async http lib for Android (though I'm not a huge fan) http://loopj.com/android-async-http/. Honestly, best thing is just to use apache httpclient inside of an intentservice so it's async and then deliver the results to your activities, etc through a ResultReceiver.
UPDATE
I now recommend Retrofit, an open-source project from Square. I use it and it works very well as a REST client. http://square.github.io/retrofit/
You could try RoboSpice. Give us feedback, if it was, what you needed.
Another good option could be Volley, networking library introduced on IO 2013 by Google. For more info check this topic: Volley Android Networking Library
This lib is awesome. i think is all you want give a try dude
https://code.google.com/p/android-query/wiki/AsyncAPI
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I am creating a program for Android mobiles which will query, retrieve and then process OData from an OData provider via a webservice.
Please can you tell me which toolkit is best for this? I have seen these:
odata4j
restlet
Thanks.
Restlet is very straightforward, although the performance is not the best. Check this article: Accessing oData from Android using Restlet.
odata4j might be more performant according to this answer.
Hey, I have been using restlet, it's extremely slow! I think it wouldn't be so difficult for you to write a parser yourself, there are many XML or JSON available nowadays. And consume an Odata service only needs a simple Apache Client!