title: Connecting Azure Service Bus with Android
body: <p>I wrote a simply java program (jdk 1.7) that lists all my service bus topics and prints out the name of each topic to stdout:</p>
  <pre class="lang-java prettyprint-override"><code>try {
      String namespace = &quot;myservicebus&quot;; // from azure portal
      String issuer = &quot;owner&quot;;  // from azure portal
      String key = &quot;asdjklasdjklasdjklasdjklasdjk&quot;;  // from azure portal
              
      Configuration config = ServiceBusConfiguration.configureWithWrapAuthentication(
          namespace, 
          issuer,
          key, 
          &quot;.servicebus.windows.net&quot;, 
          &quot;-sb.accesscontrol.windows.net/WRAPv0.9&quot;); 
               
      ServiceBusContract service = ServiceBusService.create(config);
      ListTopicsResult result = service.listTopics();
      List&lt;TopicInfo&gt; infoList = result.getItems();
      for(TopicInfo info : infoList) {
          System.out.println( info.getPath());
      }
  } catch (Exception e) {
      e.printStackTrace();
  }
  
  </code></pre>
  <p>Now, i am trying to run this example in a simple android project (Android 4.2) but it wont work.
  The runtime always throws following error:</p>
  <pre><code>java.lang.RuntimeException: Service or property not registered:  com.microsoft.windowsazure.services.serviceBus.ServiceBusContract
  </code></pre>
  <p>Has anyone successfully established a connection from an android device (or emulator) to azure service bus?</p>
  <p>Does the Microsoft Azure-Java-SDK not support android projects?</p>
  <p>Thanks in advance</p>