title: Chat application - which tech is better to implement chat app in Android
body: <p>*<em>I have to make an android application which is basically a chat application.</em>*In this chat app the user can interact with single user as well in a group that means Group chat is also there. I am using php as the back end for database . I have never done this type of work earlier so need some suggestions or guidance.  </p>
  
  <pre><code>The options i have seen is as follow :
  
  1. Web-services 
  
  2. Socket Programming 
  
  3. XMPP using the smack api 
  </code></pre>
  
  <p>Now i am confused in them that which is better to implement chat feature in android. Also i didn't get any sample code for that. One of my team member is asking me to use the socket programming but i didn't get any sample app or anything for socket programming in android. I don't know socket programming this time. How we can connect the our phone to the server and then some other device. Hope you get me what i want to Conway you.  </p>
  
  <p>So can any one please guide me and show me the right direction to move on. Also if you can provide me any sample code, that can be really helpful. Any help is appreciated </p>