title: XMPP jid-malformed(400) error Android while creating user
body: <p>I am trying to develop XMPP chat in Android and while creating new user using AccountManager I am having the following exception : </p>
  
  <blockquote>
    <p>jid-malformed(400)</p>
  </blockquote>
  
  <p>My user-connection code goes like this:</p>
  
  <pre><code>AccountManager manager = connection.getAccountManager();
  try {
        manager.createAccount(username, password);
  }
  catch(XMPPException e){
     e..printStackTrace();
  }
  </code></pre>
  
  <p>here my </p>
  
  <pre><code>username = abc@xyz.com  
  password = 12345678
  </code></pre>
  
  <p>I learned that we need not require to send service name with the username from <a href="https://stackoverflow.com/questions/21597322/getting-bad-request-400-error-using-asmack-in-android">post</a></p>
  
  <p>But in my username the format says that my user is "abc" and my service is "xyz.com"</p>
  
  <p>what should I do to keep '@' in my username?</p>
  
  <p>Thank You. :)</p>