title: Android native application not connecting to Worklight Server
body: <p>I'm trying to connect my android native application to worklight server, but i'm always getting the following error:</p>
  
  <pre><code>Unexpected errorCode occurred. Please try again.
  </code></pre>
  
  <p>I have the following code in my main activity:</p>
  
  <pre><code>connectBtn.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
  
              connectBtn.setText("Connecting...");
              client = WLClient.createInstance(getApplicationContext());
              WLClient.getInstance().connect(new MyConnectListener());
  
  
          }
      });
  </code></pre>
  
  <p>and I created this class as a connect listener:</p>
  
  <pre><code>public class MyConnectListener implements WLResponseListener {
  
  @Override
  public void onSuccess(WLResponse wlResponse) {
  
  
      Log.d("Status", "CONNECTED");
  
  
  }
  
  @Override
  public void onFailure(WLFailResponse wlFailResponse) {
      Log.d("Status", "FAILED CONNECTION "+ wlFailResponse.getErrorCode().getDescription().toString());
  }
  }
  </code></pre>
  
  <p>In my wlclient.properties i am using HTTPS with port value blank as mentioned in IBM tutorial.
  any help with this problem would be much appreciated.</p>