/Android-P2P-Chat-Messenger-using-Java-TCP-IP-Socket-Programming

A Chat Application using Android Socket Programming and Peer-Peer communication using Java TCP/IP Socket

Primary LanguageJava

Android P2P Chat Application using JAVA Socket

This is a chat application which allows text messaging and files sharing using JAVA Socket

Features

  • Text messaging
  • File sharing (any type of file including text, raw image, doc, pdf etc.)
  • Image sharing
  • Connect using QR Code Scanner
  • Set background color dynamically with custom color picker.
  • Show image thumbnail in chat.
  • Download and view shared files and images in your local device
  • Dynamic online or offline status update of opposite user.
  • Chat is saved upon exit or going out of scope automatically. Manual saving not necessary. The history is loaded from memory using "Username+IP Address+Port" of the user. Change in either of these values will be detected as a different user.
  • Chat is loaded dynamically to save memory consumption. Instead of loading entire message history at once, as the user scrolls up to see history, previous messages are loaded dynamically.

Demo

Instructions

  1. First Connect both the devices to same wifi network.
  2. Set username. Username is CASE-SENSITIVE. Username is used to store messages.
  3. Click the "Show Information" button in one device.
  4. Click "Enter IP:Port" button in another device.
  5. Scan The QR Code & click connect button.
  6. Or enter ip address and port number manually.
  7. Start messaging.
  8. To view any attachment the file must first be downloaded. Long press on file or image messages will save the file/image in the DOWNLOADS FOLDER and a notification will be shown in notification bar of the device to open with external software.
  9. Long press on text messages will copy the text to clipboard.