Just a quick post that the next part is going to be delayed. The baseball OData feed is down and I have no idea when it will be back (I don’t have any control over it.) So I’ll have to regroup and figure out what to do in case it doesn’t come back.
No tags
Thank you Roger for the posts on Eclipse, Restlet and Odata.
I’m new to the java world (mostly worked with C# in VS) and it’s great to have a Hello World project to relate to. I’m using NetFlix oData feed but I’m stuck on how to use the created serverproxy in the Android Client Project. Could you please post something about this on the blog.
Hi Magnus,
I haven’t used Restlet in a while. There were performance issues so I ended up not using Restlet but instead using the native Android JSON classes and asking the OData service for JSON instead of AtomPub. There was a little more work to consume it but not too bad.
I gave a presentation at a couple of code camps on consuming .NET and OData services from Android. The slides and sample code are in this post:
http://www.aremaitchconsulting.com/2010/10/android-and-net-data-services-presentation/
and include full samples including how to use the generated proxy class.
Response to the presentation was weak so I assumed there wasn’t much interest in the .NET community but perhaps I will revisit the topic.
Hi,
This is truely a wonderful post for anyone new to android and using restlet.
Does anyone know where this tutorial is completed.
I would like a reply asap as im nearing a deadline
.
Hi Roger,
Thank you for the information on OData and Android. I’ve created a WCF data service and have it working with Windows Phone 7, waiting for AT&T to upgrade my phone software to Mango so I can proceed. In the meantime, I’ve been experimenting with consuming the data service in Android.
I found an example on ASP.Net blog that describes an IDataServiceProxy “IDataServiceProxy proxy = new DataServiceAtomPubProxyImpl(DataServiceClient.URL)”.
In your code example mentioned above, I see that you’ve actually implemented it.
Would you help me find the resources to get from the proxy classes which I have to the final Android client? I don’t understand how to create an IDataServiceProxy and DataServiceAtomPubProxyImpl that I can use in Android.
Thank you,
David
Hi Roger,
I found that the baseball stats service is back:
http://baseball-stats.info/OData/baseballstats.svc/
Regards,
David