CometChat Demo App for Android

Overview

CometChat enables you to add voice, video and text chat to your Android app in minutes! That's not all, CometChat has whiteboard, writeboard, real-time translation and more.

For New Customers

If you would like to add CometChat to your app, please use CometChat Pro:

Step 1- Signup for CometChat Pro at https://app.cometchat.com

Step 2- View the CometChat Pro documentation at https://prodocs.cometchat.com

For Existing Customers

Quick Start

  1. Download the sample Android project from this repository.
  2. Open the MainActivity.java file and replace the CometChat License Key and API Key values. These values can be found the CometChat Admin Panel, under the Settings -> API Keys section.
  3. Build and Run the sample app

For more information regarding the CometChat Android SDK , please refer to the developer documentation.

Comments
  • toolbar title text in the center

    toolbar title text in the center

    I want to show the toolbar title text in the center. And I want to change the text for tabs recent and contacts. So can you please suggest how to achieve the same?

    opened by imdBhargav 5
  • ComectChat starts new activity stack every time

    ComectChat starts new activity stack every time

    If I have 5 users in my app and click on 1st user to chat with him. It starts cometchat screen. I came back from chat to my app now I click on 2nd user to chat with him It starts chat with 2nd user Now coming back, it will show the main cometchat screen, then 1st user chat window and then again main screen and then it came to my app.

    Everytime i starts cometchat, It creates a new activity task and not replacing an existing one. Or may be on exiting cometchat, its not kill that app.

    opened by imdBhargav 5
  • Audio/Video call : Error on OnePlus 6

    Audio/Video call : Error on OnePlus 6

    Hello, At my first try on using CometChat Demo sample, I can't get audio neither video call to work. Even if I already reached the support, I still add this issue here to warn other developers.

    Bug difficult to explain, better check this : https://vimeo.com/286914674 Tested on : Nexus 4 v5.1.1 Android - OnePlus 6 OxygenOS 5.1.9

    I have even tried with my iPhone X... audio / video is not properly working.

    This is a dealbreaker for me, because I am using cometchat for theses features.

    stack_trace_test_cometchatsample_14_08_2018.txt stack_trace_test_cometchatsample_14_08_2018_B.txt

    Regards, Guillaume

    opened by g-balas 5
  • Always get Error In Connection when Initialize Chat

    Always get Error In Connection when Initialize Chat

    Hi! Im just trying to test this project using my API key and License key but always getting this error when running it on android studio 👎 screenshoot

    e95aee17-8b1a-46a9-9e33-c5baeb046af5

    did i miss something?

    opened by ayyash-ayyub 5
  • get the click of row  items individually

    get the click of row items individually

    How can I get the individual click of an items present in one row. Suppose I want to open user profile screen from user photo. So How can I get the click of user photo etc.. How would I achieve this?

    opened by imdBhargav 4
  • Multiple logins not working in Single device

    Multiple logins not working in Single device

    I tried with demo and run on single device with separate login but both time its shows as single user only chatting.

    e.g: Login with superhero1 in cometchat and chat with superhero2 now i am login with superhero2 but I can see same list or chat which is done in superhero1 its visible on right side only. please guide me with this issue.

    opened by Mohsin92 3
  • App is crashing MessageQueue-JNI: java.lang.NullPointerException

    App is crashing MessageQueue-JNI: java.lang.NullPointerException

    Hello

    My cometchat app is crashing on startup. Please look into it

    MessageQueue-JNI: java.lang.NullPointerException: Attempt to read from field 'java.lang.String models.Contact.cometid' on a null object reference at activities.CCSingleChatActivity$4.afterTextChanged(SourceFile:522) at android.widget.TextView.sendAfterTextChanged(TextView.java:8203) at android.widget.TextView$ChangeWatcher.afterTextChanged(TextView.java:10382) at android.text.SpannableStringBuilder.sendAfterTextChanged(SpannableStringBuilder.java:1218) at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:579) at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:509) at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:508) at android.text.method.QwertyKeyListener.onKeyDown(QwertyKeyListener.java:223) at android.text.method.TextKeyListener.onKeyDown(TextKeyListener.java:136) at android.widget.TextView.doKeyDown(TextView.java:6285) at android.widget.TextView.onKeyDown(TextView.java:6075) at android.view.KeyEvent.dispatch(KeyEvent.java:2688) at android.view.View.dispatchKeyEvent(View.java:9960) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1630) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1630) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1630) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1630) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1630) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1630) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1630) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1630) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1630) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1630) at com.android.internal.policy.DecorView.superDispatchKeyEvent(DecorView.java:405) at com.android.internal.policy.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1798) at android.app.Activity.dispatchKeyEvent(Activity.java:3021) at android.support.v7.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:534) at android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:58) at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent(AppCompatDelegateImplBase.java:316) at android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:58) at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:319) at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4331) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4302) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3853) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3906) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3872) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3999) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3880) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4056) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3853) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3906) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3872) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3880) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3853) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3906) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3872) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4032) at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:4193) at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:2400) at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1964) at android.view.inputmethod.InputMethodManager.finishedInputEvent(In

    opened by imdBhargav 2
  • App crashed with java.lang.IllegalArgumentException: Non-positive period.

    App crashed with java.lang.IllegalArgumentException: Non-positive period.

    Hello, My app is crashing on the click of reply button from chat notification with the following error. java.lang.IllegalArgumentException: Non-positive period. I am not able to find any solution. Please help me

    FATAL EXCEPTION: IntentService[DirectReplyService]
                                                                  Process: com.myheyhey, PID: 27604
                                                                  java.lang.IllegalArgumentException: Non-positive period.
                                                                      at java.util.Timer.scheduleAtFixedRate(Timer.java:327)
                                                                      at com.inscripts.heartbeats.CCHeartbeat.startHeartbeat(SourceFile:164)
                                                                      at com.inscripts.heartbeats.CCHeartbeat.changeHybridHeartbeatInverval(SourceFile:184)
                                                                      at cometchat.inscripts.com.cometchatcore.coresdk.CometChat.resetOneOnOneHeartbeatInterval(SourceFile:1070)
                                                                      at cometchat.inscripts.com.cometchatcore.coresdk.CometChat.sendMessage(SourceFile:3032)
                                                                      at services.DirectReplyService.onHandleIntent(SourceFile:110)
                                                                      at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:68)
                                                                      at android.os.Handler.dispatchMessage(Handler.java:110)
                                                                      at android.os.Looper.loop(Looper.java:203)
                                                                      at android.os.HandlerThread.run(HandlerThread.java:61)
    
    opened by imdBhargav 1
  • CometChat screen takes time to load

    CometChat screen takes time to load

    Hello When I start cometchat screen it takes almost 3-4 seconds to start the screen that much delay is not a good for any UI please suggest some solution

    opened by imdBhargav 1
  • How to use custom font in CometChat

    How to use custom font in CometChat

    I recently noticed that IOS SDK has received an update to use custom font in cometchat sdk. When Android will get an update to use custom font ?

    Or is there any other way available from that we can use custom font throughout the comet chat screens?

    opened by imdBhargav 1
  • How to get UID of user in CCSingleChatActivity

    How to get UID of user in CCSingleChatActivity

    I have imported 'CometChatUI' module in my project to modify some UI. My requirement is suppose my name is 'A' and I am chatting with user named 'B'. In a One-to-one chat, when I clicked on View profile to see 'B' user's profile. I want to redirect the user A to my app to see the user B's profile. I do not want to open CometChat profile screen

    I am registering and login an user into CometChat from uid. (and this uid is user id from our app) Now in CCSingleChatActivity I want to get that uid from which the user B logged in. But unfortunatlely, I am not getting that uid of user B.

    I have tried contactId, contact.cometid, contact.id

    But not getting the uid from which user is logged into the CometChat.

    Can you please advice how to get uid of user in CometChat

    opened by imdBhargav 1
  • Crashing after upgrading to 2.3.1,

    Crashing after upgrading to 2.3.1,

    Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.trim()' on a null object reference
           at com.cometchat.pro.core.CometChat.loginWithAuthTokenInternal(CometChat.java:5)
           at com.cometchat.pro.core.CometChat.access$1400(CometChat.java:1)
           at com.cometchat.pro.core.CometChat$161.onSuccess(CometChat.java:2)
           at com.cometchat.pro.core.CometChat$161.onSuccess(CometChat.java:1)
           at com.cometchat.pro.core.CometChat$75$2.run(CometChat.java:1)
           at android.os.Handler.handleCallback(Handler.java:883)
           at android.os.Handler.dispatchMessage(Handler.java:100)
           at android.os.Looper.loop(Looper.java:227)
           at android.app.ActivityThread.main(ActivityThread.java:7822)
           at java.lang.reflect.Method.invoke(Method.java)
           at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026)
    
    opened by happysingh23828 0
  • Crashing while launch chat

    Crashing while launch chat

    This is an error log getting

    java.lang.NoSuchFieldError: No static field tabs of type I in class Lcometchat/inscripts/com/readyui/R$id; or its superclasses (declaration of 'cometchat.inscripts.com.readyui.R$id' appears in /data/app/com.evolutionco.copal-hYajAUoMSZyC0mc9pxWoDQ==/split_lib_slice_3_apk.apk) at activities.CometChatActivity.setupFields(SourceFile:745) at activities.CometChatActivity.onCreate(SourceFile:165) at android.app.Activity.performCreate(Activity.java:7009) at android.app.Activity.performCreate(Activity.java:7000) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 2019-03-27 11:14:01.952 25254-25254/com.evolutionco.copal E/memtrack: Couldn't load memtrack module

    opened by pjadhav138 1
Owner
CometChat Go
Voice, Video & Text Chat Plugin for WordPress and other popular software
CometChat Go
this is the demo of billing new library v3

Billing library v3 demo android This is the demo of billing new library v3 for android native IMPORTANT 1- you must have login to google play store to

Muhammad Sikandar 3 Dec 6, 2021
Android Weather Library: android weather lib to develop weather based app fast and easily

WeatherLib Android weather lib is an android weather aggregator. The lib helps you getting weather data from the most importat weather provider. It su

Surviving with android (by Francesco Azzola) 641 Dec 23, 2022
Accept PayPal and credit cards in your Android app

Important: PayPal Mobile SDKs are Deprecated. The APIs powering them will remain operational long enough for merchants to migrate, but the SDKs themse

PayPal 802 Dec 22, 2022
Library for Android In-App Billing (Version 3+)

Checkout (Android In-App Billing Library) Description Checkout is an implementation of Android In-App Billing API (v3+). Its main goal is to make inte

Sergey Solovyev 1k Nov 26, 2022
This App is sending Face capture data over network, built around the latest Android Arcore SDK.

AndroidArcoreFacesStreaming From any Android phone ArCore compatible, using this app will send over TCP 5680 bytes messages: The first 5616 bytes is a

Maxime Dupart 30 Nov 16, 2022
How to Integrate SAWO SDK to an Android app

How to Integrate SAWO SDK to an Android app Add following line to root build.gradle repositories block maven { url 'https://jitpack.io' } Add this to

Latiful Mousom 0 Nov 20, 2021
A very simple way to implement In App Purchases on Android.

The Google-developed Android In App Purchases library can seem quite confusing and too much code to do something as simple as making in-app purchases

Maickonn Richard 1 Sep 29, 2021
The client app for Android

handl-service-provider-application “Service Booking Platform ” is an advanced pl

null 0 Dec 20, 2021
A sample project of implementing Liveness Detection and Identity OCR on Android app using Kredibel Vision SDK

Vision Sample (Android) A sample project of implementing Liveness Detection and Identity OCR on Android app using Kredibel Vision SDK. You can checkou

null 10 Nov 27, 2022
Qiscus provide everything you need to power up your app with chats. And it's now made simple.

Introduction Qiscus Chat SDK (Software Development Kit) is a product provided by Qiscus that enables you to embed an in-app chat/chat feature in your

Qiscus - Multichannel Conversational Platform 197 Dec 27, 2022
Free forever Marketing SDK with a dashboard for in-app SplashScreen banners with built-in analytics

AdaptivePlus Android SDK AdaptivePlus is the control center for marketing campaigns in mobile applications Requirements minSdkVersion 16 Examples prov

Adaptive.Plus 16 Dec 14, 2021
Its measurement app made using kotlin with sceneform sdk by google

ARCORE MEASUREMENT This app is build using sceneform sdk for android using kotlin language It helps you measure the distance between multiple points i

Kashif Mehmood 39 Dec 9, 2022
Sdk-android - SnapOdds Android SDK

Documentation For the full API documentation go to https://snapodds.github.io/sd

Snapodds 0 Jan 30, 2022
AWS SDK for Android. For more information, see our web site:

AWS SDK for Android For new projects, we recommend interacting with AWS using the Amplify Framework. The AWS SDK for Android is a collection of low-le

AWS Amplify 976 Dec 29, 2022
Powerful custom Android Camera with granular control over the video quality and filesize, restricting recordings to landscape only.

LandscapeVideoCamera Highly flexible Android Camera which offers granular control over the video quality and filesize, while restricting recordings to

Jeroen Mols 1.2k Dec 29, 2022
Countly Product Analytics Android SDK

Countly Android SDK We're hiring: Countly is looking for Android SDK developers, full stack devs, devops and growth hackers (remote work). Click this

Countly Team 648 Dec 23, 2022
Android Real Time Chat & Messaging SDK

Android Chat SDK Overview Applozic brings real-time engagement with chat, video, and voice to your web, mobile, and conversational apps. We power emer

Applozic 659 May 14, 2022
Evernote SDK for Android

Evernote SDK for Android version 2.0.0-RC4 Evernote API version 1.25 Overview This SDK wraps the Evernote Cloud API and provides OAuth authentication

Evernote 424 Dec 9, 2022
SocialAuth repository which contains socialauth android version and samples

SocialAuth Android is an Android version of popular SocialAuth Java library. Now you do not need to integrate multiple SDKs if you want to integrate y

3Pillar Global Open Source 318 Dec 30, 2022