On Fri, 2019-02-15 at 20:27 -0600, Oscar Bastidas wrote: > Hello, > > I am getting into Java software development totally developed on my > Android > tablet-no use of a "real" computer. I have noticed that the Java > package I > am using (the ecj compiler on the Termux emulator) doesn't have the > HttpClient library installed on it and that the download files > available on > hc.apache.org do not appear to be compatible with the Termux setup I > have > (I confess I am somewhat of a novice and "teaching myself," on this > craft > but this is my understanding so far). For some background, Termux is > a > Linux emulator that turns Java code into class and dex files that > dalvik, > our virtual machine then executes. > > My question is, can the HttpClient library available on Apache for > Java be > used directly on an Android device coding Java?
Hi Oscar HttpClient 5.0 most likely yes, HttpClient 4.5 almost certainly no. I am working on making stock HttpClient 4.5 compatible with Android 9 (API 28). > If so, what is the setup > involved? I believe there is an Android version coming available at > some > point, but my fear is that these will be traditional .jar files for > use in > Android development on a traditional Linux, Windows or Mac machine as > opposed to the Linux-like Termux environment which cannot run jar > files. > If you want a fork of HttpClient 4.x compatible with earlier versions of Android please see http://hc.apache.org/httpcomponents-client-4.5.x/android-port.html Otherwise please consider using HttpClient 5.0. Hope this helps. Oleg > Thanks, and any resources or ideas you can point me to in this > journey will > be greatly appreciated. > > Oscar --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
