Question

I wanna implement very efficient group chat in android. How can I do that? Please give me your best suggestions and also some step by step tutorial will help me in this.

I want to do peer to peer chat and also group chat. So Both type of implementations I wanna implement. Any SDK is available there? Or Any java lib are there?

Please give me your best suggestions.

Thanks, Jay Patel

Was it helpful?

Solution

Start with checking out Google's own Google Cloud Messaging. This lets you push messages to other devices. After that, you can google and see if you find any examples or tutorials and you are good to go!

OTHER TIPS

Here is a sample code of Android Chat SDK developed using Applozic backend server and Chat SDKS. https://github.com/AppLozic/Applozic-Android-SDK

PS: I am from Applozic

You need to submit form like this for making a persistent group:

private void setConfig(MultiUserChat multiUserChat) { try {

    Form form = multiUserChat.getConfigurationForm();
    Form submitForm = form.createAnswerForm();
    for (Iterator<FormField> fields = submitForm.getFields(); fields.hasNext();) {
        FormField field = (FormField) fields.next();
        if (!FormField.TYPE_HIDDEN.equals(field.getType()) && field.getVariable() != null) {
            submitForm.setDefaultAnswer(field.getVariable());
        }
    }
    submitForm.setAnswer("muc#roomconfig_publicroom", true);
    submitForm.setAnswer("muc#roomconfig_persistentroom", true);
    multiUserChat.sendConfigurationForm(submitForm);

} catch (Exception e) {
    e.printStackTrace();
}

}

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top