Chatting application Android - java

I'm on developing an android application which allows users to chat I created an interface and its code for chatting ..
but I don't know how can I make this interface shared for each contact and how can I show his conversations ??
thanks in advance ...

You probably will need to elaborate some more to get a better answer. Try to be as specific as possible. i.e. what technology do you intend to use to make the connection between two chatters?
There is a nice example in the SDK that implements a bluetooth chat client
http://developer.android.com/resources/samples/BluetoothChat/index.html
I'd definitely dig in to that some if I were you. Even if you aren't wanting the connection to be made via bluetooth it should give you some insight on how to hook up the incomming and outgoing chat messages to the Views on the screen

Related

how to create instant messaging app in android

I want to implement an instant messaging feature in my android app which will show the chat list of the current user and the conversation with each of them. I want to know which is the best option for doing so because i have heard about various feature like pusher,gcm,xmpp,etc.
I am using retrofit 2.0,php and mysql now in my app to create messaging feature,everything is working out great but but i cant figure out how to show the message received or send in the conversation instantly because for that network request call has to called every time the received or send and i have a feeling i might not be good idea as it will slow down app or something.
Any help will be appreciated
Thanks in advance
If I were you I would look at https://socket.io/. There is also a demo project for Android chat app

Chat using Parse in android

I am developing chat application using parse. These will be a group chat application.
There are many number of groups possible. I have implemented parse and also have knowledge about it.
But I want to make it real time chat application.
I know I can do it with the help of push notification but having lack knowledge of implementation.
Can you guys please suggest me some other way of doing real time chat or how to exactly work with push notification to make real time chat application.
So here are some queries:
Can I develop group chat using parse ?
Does it feasible solution to use parse for real time chat ?
If yes , then how can i make it real time chat. ?
Parse platform is not suitable for real-time chat applications as it does not support persistent websocket connections. You can still use Parse to send notifications but you should use other providers with real-time support like PubNub or Firebase
Regarding Mo Nazemi's answer, you should also look into Layer and SINCH, sinch alos includes VoIP

How to make simple peer to peer chatting using android

I am developing chatting application using android. And my requirement is chatting. Now i am stuck that how i can achieve this for example through sockets, or through web services. I need to make my own server and then chatting between users. But i have no idea to do this. I also looking for complete example that how chatting will work but did not find any good example.
You may use webservices.Before that you have to know about GCM.Learn about GCM.Then continue your chat application with hopefully :)

Chat application - which tech is better to implement chat app in Android

*I have to make an android application which is basically a chat application.*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.
The options i have seen is as follow :
1. Web-services
2. Socket Programming
3. XMPP using the smack api
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.
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
Another option (besides XMPP, which is certainly a valid approach for chat, since it was designed for that) would be using WebSocket. Using WebSocket would open the possiblity of having a pure browser client as well.
For WebSocket on Android, there is AutobahnAndroid, part of the Autobahn family of WebSocket and WAMP implementations.
WAMP is a RPC and PubSub over WebSocket protocol with multiple implementations. There is also a PHP implementation of WebSocket/WAMP: Ratchet.
Disclaimer: I am author of Autobahn/WAMP and work for Tavendo.
For a basic Socket programming tutorial, you can check HERE and HERE.
However, I suggest using XMPP, as I have mentioned HERE, as it is a protocol designed from the ground up to be used for Messaging.

How to implement a real time bidirectional connection with server in android

I have experience developing in android and using REST services, but now I'd like to implement an online game for android. For example a tic-tac-toe for multiplayer, where a user can invite to other to play a game and each one receive the actions of the other in real time.
Using REST for this kind of apps would require constants surveys to the server for updates and its a bad idea.Isn't it?
My question is what are the typical aproaches for this kind of "permanent" connections. I just need some hints about the technologies and protocols in client and server for start searching and read :D
Thanks
You can use sockets directly but for a game like tic-tac-toe, it shouldn't be THAT chatty, using REST would be ok.

Categories