|Any progress on Android support?||Konrad Malawski||5/7/11 1:08 PM|
I really love your library but it sadly doesn't seem to be compatible with Android devices. It's falling back to the JDK implementation, which obviously isn't supported on the DVM.
05-07 19:44:34.990: ERROR/AndroidRuntime(262): java.lang.VerifyError: com.ning.http.client.providers.jdk.JDKAsyncHttpProvider
I saw your discussion at https://groups.google.com/forum/#!topic/asynchttpclient/Ml6bOndZbDY but sadly it didn't have a solution. If you have an idea on how to fix this, please let me know - I'm currently playing around with other *AsyncHttpProvider's - hopefully something nice will come out of it. The ApacheAsyncHttpProvider also seems to fail, I have not yet been able to try out the Netty implementation - will do so in a few hours. Could you suggest any nice way out of this situation? The other project (project Android is using OtherProject which is using AsyncHttpClient) which is using AsyncHttpClient is also my opensource code, so if making it work on Android is a problem I'll switch over to some other provider - but would very much like to stay with your lib - as I already said, it's just great... :-)
In the worst case scenario I would have to implement my own AsyncHttpProvider I guess, but that's not really something I would like to do now.
I'm open to any suggestions and ideas.
Thanks a lot in advance,
|Re: Any progress on Android support?||jfarcand||5/9/11 5:09 AM|
I've never worked with Android so I will need some help in order to
AsyncHttpClient c = new AsyncHttpClient(new JDKAsyncHttpProvider(new
|Re: Any progress on Android support?||Konrad Malawski||5/9/11 3:14 PM|
Hi and thanks for your response.
Yes I tried it like you suggested (tried it again just now to be sure), it results in:
05-09 22:04:48.857: ERROR/AndroidRuntime(288): Uncaught handler: thread main exiting due to uncaught exception
05-09 22:04:48.867: ERROR/AndroidRuntime(288): java.lang.VerifyError: com.ning.http.client.providers.jdk.JDKAsyncHttpProvider
In the end I just switched my high level "RestClient" which does some additional things to the http client implementation that is native to Android, that is to the packages -> org.apache.http.* (org.apache.http.impl.client.DefaultHttpClient).
So if we'd be able to implement an AsyncHttpProvider using the DefaultHttpClient from Apache, AsyncHttpClient would probably get it's Android support :-) I may research this further in some freetime hmm... If I come up with an implementation I'll be sure to let you know about it :-)
My basic implementation is enough for now for me, I didn't really harness the async part of your library in this project yet so a simple implementation was easy to swap in.
Thanks a lot for your response and good work on AHC :-)
|Re: Any progress on Android support?||jfarcand||5/10/11 5:22 AM|
On 11-05-09 6:14 PM, Konrad Malawski wrote:
Thanks for sharing. I've filled:
to track the issue. I've never developped with Android so I will need a
> My basic implementation is enough for now for me, I didn't really
Thanks! Let me know how it goes!
|Re: Any progress on Android support?||Konrad Malawski||5/10/11 6:04 AM|
Thanks for opening the issue on jira, good idea.
I'll try to implement it some time after GeeCON which is taking place this week and I'm very much involved there as an organizer so won't have any time this week to hack around...
Anyways, let's continue about this matter in the jira issue, thanks again for your quick responses :-)
|Re: Any progress on Android support?||emanuele||7/5/11 1:38 AM|
Any progress supporting async http client on android? what about the
Thanks and sorry for bothering u
|Re: Any progress on Android support?||jfarcand||7/6/11 8:22 AM|
I'm not longer full time on this project (specially for the next 3
Any contribution welcomed!