Android Programming Tutorials

(Romina) #1

TUTORIAL 16


Opening a JAR


Writing our own identi.ca API seems silly, considering that there are so


many of them available as open source, including three for Java. In this


tutorial, we will replace our HttpClient with JTwitter, an LGPL


Twitter/identi.ca API that works with Android.


Step-By-Step Instructions.........................................................................


First, you need to have completed the previous tutorial. If you are


beginning the tutorials here, or if you wish to not use your existing work,


you can download a ZIP file with all of the tutorial results, and you can copy


the 15-HttpClient edition of Patchy to use as a starting point.


Step #1: Obtain the JTwitter JAR.......................................................


The current official JTwitter distribution appears to drop support for


identi.ca. Hence, this tutorial will have you use a patched version of an


identi.ca-compatible JTwitter distribution.


Download the modified JTwitter JAR. Then, put the JAR in the Patchy/libs/


directory, so it is available to your application. Or, you can obtain the same


modified JTwitter JAR from the tutorial results.


165
Free download pdf