0

Is there an alternative to accessing Windows Azure Service Bus queues from an android application that doesn't involve working directly with HTTP requests? For instance, a third-party library or SDK, or instructions on how to use the Windows Azure SDK for Java on Android projects?

The azure-sdk-for-java apparently is not compatibile with Android. My understanding is that it directly references some core libraries such as javax.inject. Trying to use it on an Android project via Maven resulted in errors such as trouble processing "javax/xml/stream/EventFilter.class" and Ill-advised or mistaken usage of a core class (java.* or javax.*) when not building a core library.

The wa-toolkit-android only supports Storage, not Service Bus.

Fernando Correia
  • 21,803
  • 13
  • 83
  • 116

2 Answers2

1

You could use Windows Azure Mobile Services which supports Service Bus from Node.js. This is explained by Scott Guthrie here: http://weblogs.asp.net/scottgu/archive/2012/10/16/windows-azure-mobile-services-new-support-for-ios-apps-facebook-twitter-google-identity-emails-sms-blobs-service-bus-and-more.aspx. Node.js and service bus explanation is here: http://www.windowsazure.com/en-us/develop/nodejs/how-to-guides/service-bus-topics/

Today, Android can connect to Windows Azure Mobile services as explained by Chris Risner here: http://chrisrisner.com/Windows-Azure-Mobile-Services-and-Android

benjguin
  • 1,496
  • 1
  • 12
  • 21
  • Thank you. That's a helpful answer, even though I'm looking for native Java classes that would access Service Bus directly instead of through a proxy service I'd have to pay additionally for. But Mobile Services is definitely an option worth considering when developing for mobile devices and I'll look further into it. – Fernando Correia Oct 16 '12 at 22:20
  • 2
    Note that if you have low traffic, Windows Azure Mobile services is free. http://www.windowsazure.com/en-us/pricing/details/#header-0 – benjguin Oct 16 '12 at 23:24
1

You can take a look at the Windows Azure SDK for Java it includes library and sample code on how to use Service Bus queues and topics. Here's also a post on how to use Queues from plain java, in case it helps.

Ramiro Berrelleza
  • 2,254
  • 1
  • 15
  • 27
  • Thank you. I think that at this time to use Service Bus queues from Android the best way is to implement it based on the sources you mentioned. – Fernando Correia Dec 05 '12 at 12:31