Most of the Universities and Offices do not allow internet access (on mobile) during working hours. It's good measure for maintaining concentration of employees in their work and for students to avoid usage of mobile during lectures.
But sometimes it isn't good as a number of times in a day we have to share files and texts among each other such as notes etc.
So we brought a solution for this problem. "InChat" helps user to connect with each other sitting close but cannot talk in order to maintain decorum.
We made 2 modes of connection.
- Chat through WiFi
- Chat through Bluetooth
We used the Socket Connection programming generally taught in Networking classes of engineering and implemented the same in Android Studio.
This app is useful in Library also, as silence is required to maintain in their so often we need to talk, to discuss. This app can be proved useful there.
We were planning to make this application work in online and offline ways, but due to time constraints, we focused on the MVP.
- Launch the application on 2 devices
- Open Chat on WiFi on both the devices
- Click on Your IP on top of the screen, it will copy the IP address (on both devices)
- Paste the IP address in the "Enter" IP textbox, make sure both the devices write each other IP addresses, not your own
- Start Sending Messages
- Now back to home activity, and open Open Chat with Bluetooth
- Click on the top Bluetooth icon, and search for devices, meanwhile on another device, click on the make a discoverable button
- Connect both the devices
- Start chatting
We struck in the Wi-Fi Chat part as the Socket programming we studied in our classes was based on Computers connected over ethernet. But here implementing the same feature for mobiles was quite different. So we used a common router for maintaining connections. And for the Bluetooth module, it was always reading paired devices, so had to use StackOverflow a couple of times to fix that problem.
Another user-centric challenge was to again and again search for his local IP address, so we made display the IP address on top of the chat screen. And can be copied with a single tap and as all devices are connected on a common network, only the last 2 digits need to be changed.
Technologies used
Discussion