Android Building Group Chat App using Sockets – Part 2
In the 1st part, we have learned how to build the socket server and the web chat app. We also did tested the socket server using the web app. In this part we are going to build the next important component, i.e. android chat app. The app we are about to create will have two screens. The first screen will prompt the user to enter his/her name. This name is to identify the sender whenever a message is received. The second screen is to list the chat messages and to compose a new message. So let’s start the app by creating a new android project in Eclipse IDE. 6. Building The Android Chat App 1. In Eclipse create new android project by navigating to File ⇒ New ⇒ Android Application Project and fill out all the required details. I gave my project name as WebMobileGroupChat and package name as info.androidhive.webgroupchat. 2. Add the below color values in res ⇒ values ⇒ colors.xml file. colors.xml <?xml version="1.0" encoding="utf-8"?> <resources> ...