I am trying to use OData4J to retrieve a list of Users from the StackOverflow OData service (onto an Android 2.1 device), but it isn't working.
public static Enumerable<OEntity> getUserInfo() {
ODataConsumer c = ODataConsumer.create("https://odata.sqlazurelabs.com/OData.svc/v0.1/rp1uiewita/StackOverflow/");
return c.getEntities("Users").execute();
I think it is unable to retrieve data from the URL.
Any ideas why this would be? Is there anything wrong with my code?
Thanks.