Or, you can grab an open source impl of the qname class (or impl it yourself) and include it in your code...
- james Sent from my Verizon Wireless BlackBerry -----Original Message----- From: lookman sanni <[email protected]> Date: Thu, 7 May 2009 15:58:28 To: <[email protected]> Subject: Re: Porting Abdera onto Android 1.0 Thx for your feeback. I've finally tried to build the abdera-core as an android project so that it could use android's native Apache HttpClient. That works pretty well till i find out it needs the javax.xml package (QNAME class) android don't support. I guess then that i should start thinking of another way posting my atom resources to my servlet. On Thu, May 7, 2009 at 3:30 PM, James Abley <[email protected]> wrote: > 2009/5/6 Jim Ancona <[email protected]>: > > I think Android includes a version of Apache HttpClient 4. It's > > possible that is causing a conflict with Abdera. I've also been > > meaning to give this a try. When I do, I'll report back. > > > > Jim > > I can confirm that it does; specifically this ABI: > > > http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4_0_API_FREEZE/ > > Cheers, > > James > > > > > On Tue, May 5, 2009 at 8:09 PM, <[email protected]> wrote: > >> Haven't tried to port abdera to a mobile java platform but its something > I want to do. Not sure what's causing the issue you're seeing. - james > >> Sent from my Verizon Wireless BlackBerry > >> > >> -----Original Message----- > >> From: lookman sanni <[email protected]> > >> > >> Date: Wed, 6 May 2009 01:59:58 > >> To: <[email protected]> > >> Subject: Porting Abdera onto Android 1.0 > >> > >> > >> Hi folks!. > >> I'm encountering some issues while trying to built an atom feed and post > it > >> from an android app. I'm doin it this way: > >> > >>> Abdera abdera = new Abdera(); > >>> AbderaClient client = new AbderaClient(abdera); > >>> Entry entry = abdera.newEntry(); > >>> entry.setContent("<entry xmlns='http://www.w3.org/2005/Atom'>" + > >>> "<title>item</title>" + > >>> "<content type='text/xml'>" + > >>> "<Item xmlns='http://services/'>" + > >>> "<name xmlns=''>" + item.getName()+ "</name>" + > >>> "<price xmlns=''>" +item.getPrice()+"</price>" + > >>> "</Item></content></entry>"); > >>> ClientResponse resp = client.post(ServiceURI,entry); > >> > >> > >> And i always get the following error: > >> > >>> java.lang.VerifyError: org.apache.abdera.protocol.client.AbderaClient > >> > >> > >> I even tried to comment the Abdera Client initialisation and and the > >> client.post lines, but all i got is a null pointer error. Did someone > face > >> such issues so far? > >> Thx; > >> -- > >> Lookman SANNI; > >> > >> > > > -- Lookman SANNI;
