CometChat SDK intgegration

I have integrated the cometChat Android SDK. But there is no option to make video call and Audio call.
Please Assist me.
Thanks

Hello @jatin
Cam you please let us know the steps youbhave followed to integrate the SDK
Also, please confirm if you are using the Android UI Kit

Awaiting reply

Hi,
I have just follow the step which mention on the cometchat web portal below is the link


I have also integrated the Android Uikit.
I am also facing the theme issue with existing theme of my app.

Hello @jatin
Regarding the theme issue, you will have to use one of the Material Themes provided as the UI kit is built on the Material themes. All you need to do is replace the existing theme of your app with its material equivalent. That should resolve the issue

Also, regarding calling, we have released the UI kit with calling features yesterday. You can download a fresh copy of the latest code from github and that should have the calling feature integrated

Hope this helps. If you have any other queries do get back to us and we will be happy to assist you with the same.

can you please share a github link so that i can get latest Uikit
Thanks

Hello @jatin
Please find below the link for the UI Kit:
To Download :
https://github.com/cometchat-pro/android-chat-ui-kit/archive/master.zip

Github Repo Link:

Thank You

Hi Aditya,

Thanks for guide me, now i am able to make video call and Audio call.
But still i am facing following issue
java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
at androidx.appcompat.app.AppCompatDelegateImpl.setSupportActionBar(AppCompatDelegateImpl.java:421)
at androidx.appcompat.app.AppCompatActivity.setSupportActionBar(AppCompatActivity.java:150)
at screen.messagelist.CometChatMessageScreen.initViewComponent(CometChatMessageScreen.java:321)
at screen.messagelist.CometChatMessageScreen.onCreateView(CometChatMessageScreen.java:257)

Please Assist me
Thanks

Can you please let me know which theme you are using as your AppTheme…?

Hey Aditya,
I am tested chat is working.
I am testing the Video and Audio call but when i call from one user the recipient didn’t get the ring.
like jatin call to Aditya but Aditya didn’t ringing. But Aditya show the missed call from jatin
Please assist me

Can you please share a video for the same so that we can better understand the issue. We are already looking into this but a video from your side might help a lot.
Also, i would like to know if this happens every time or is this a random occurrence that happens once in a while

Hey Aditya,

Video and Audio call issue is solved. I am just missing one line code ‘CometChatCallListener.addCallListener(“PatientQueueFragment”,getContext());’.

Now please assist me into the theme issue

Thanks

Following theme style we are using

<!-- Base application theme. -->
<!-- Base application theme. -->
<style name="AppParentTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
</style>
<style name="AppTheme.NoActionBar">
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
</style>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/>
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light"/>

<!-- Splash Screen theme. -->
<style name="SplashTheme" parent="Theme.AppCompat.NoActionBar"></style>


<style name="AppThemeParent" parent="Theme.AppCompat.Light.DarkActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
</style>

<style name="AppBaseTheme" parent="Theme.MaterialComponents.Light">
<!--<style name="AppBaseTheme" parent="@android:style/Theme.Light">-->
    <item name="android:windowActionBar">true</item>
    <item name="android:windowDisablePreview">true</item>
    <item name="android:actionBarSize">@dimen/actionbar_height</item>
    <item name="actionBarSize">@dimen/actionbar_height</item>
</style>

<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
    <!-- All customizations that are NOT specific to a particular API-level can go here. -->

</style>

<!--<style name="AppBaseThemeCompact" parent="Theme.AppCompat.Light.NoActionBar">-->
<style name="AppBaseThemeCompact" parent="Theme.MaterialComponents.Light.NoActionBar">

</style>

<style name="AppThemeCompact" parent="AppBaseThemeCompact">

</style>

<style name="TransparentTheme" parent="AppThemeCompact">
    <item name="android:background">#33000000
    </item> <!-- Or any transparency or color you need -->
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowBackground">@android:color/transparent</item>
    <item name="android:colorBackgroundCacheHint">@null</item>
    <item name="android:windowIsTranslucent">true</item>
    <item name="android:windowAnimationStyle">@android:style/Animation</item>
</style>

<style name="menu_labels_style">
    <item name="android:background">@drawable/fab_label_background</item>
    <item name="android:textColor">@color/black</item>
</style>

<style name="MenuLabelsStyle">
    <item name="android:background">@drawable/fab_label_background</item>
    <item name="android:textColor">@color/theme_grey</item>
    <item name="android:textSize">@dimen/textview_textsize</item>
    <item name="android:maxLines">1</item>
    <item name="android:ellipsize">end</item>
</style>

<!-- DRiefcase Logo Style-->
<style name="loginimage">
    <item name="android:layout_width">@dimen/loginimage1_width</item>
    <item name="android:layout_height">@dimen/loginimage1_height</item>
    <item name="android:layout_marginTop">@dimen/image_margintop</item>
    <item name="android:layout_centerHorizontal">true</item>
</style>
<style name="loginsignupimage">
    <item name="android:layout_width">@dimen/signup_img_width</item>
    <item name="android:layout_height">@dimen/signup_img_height</item>
    <item name="android:layout_margin">@dimen/signup_margin</item>
    <item name="android:layout_centerHorizontal">true</item>
</style>

<!-- Actionbar Styles -->
<style name="actionbar_parent">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:layout_centerVertical">true</item>
    <item name="android:textSize">@dimen/actionbar_text_size</item>
    <item name="android:paddingTop">@dimen/actionbar_padding</item>
    <item name="android:paddingBottom">@dimen/actionbar_padding</item>
    <item name="android:paddingRight">@dimen/actionbar_padding_left</item>
    <item name="android:paddingLeft">@dimen/actionbar_padding_left</item>
    <item name="android:textColor">@color/white</item>
    <item name="android:visibility">invisible</item>
</style>



<style name="register">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:textSize">@dimen/hello_textsize</item>
</style>
<style name="allfiled">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:textSize">@dimen/allfiled_textsize</item>
</style>
<style name="firstname">
    <item name="android:background">@drawable/edittext_border</item>
    <item name="android:layout_weight">1</item>
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">@dimen/firstname_height</item>
    <item name="android:textSize">@dimen/edittext_textsize</item>
    <item name="android:singleLine">true</item>
    <item name="android:paddingLeft">@dimen/edittext_paddingLeft</item>
    <item name="android:paddingRight">@dimen/edittext_paddingRight</item>
    <item name="android:textColorHint">@color/hint_text_color</item>
    <item name="android:inputType">textNoSuggestions|textCapWords</item>
    <item name="android:textColor">@color/hint_textcolor</item>
</style>


<style name="reg_terms_logo">
    <item name="android:layout_width">@dimen/reg_terms_logo_width</item>
    <item name="android:layout_height">@dimen/reg_terms_logo_height</item>
    <item name="android:layout_gravity">center_horizontal</item>
    <item name="android:layout_marginTop">@dimen/image_margintop</item>
</style>

<style name="tab_bar_text">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:layout_gravity">center_vertical</item>
    <item name="android:gravity">center_horizontal</item>
    <item name="android:textSize">@dimen/tab_bar_textsize</item>
</style>

<style name="tab_bar">
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">@dimen/tab_bar_height</item>
</style>

<style name="view_about_us">
    <item name="android:layout_width">@dimen/view_about_us_width</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:layout_marginBottom">@dimen/view_line_marginbottom</item>
    <item name="android:layout_marginTop">@dimen/view_line_margintop</item>
</style>

<style name="about_us_bottom_image">
    <!--<item name="android:layout_margin">@dimen/about_us_bottom_image_margin</item>-->
    <item name="android:layout_width">@dimen/dimen_22dp</item>
    <item name="android:layout_height">@dimen/dimen_22dp</item>
</style>

<style name="contact_us_tabs">
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">@dimen/contact_us_tabs_height</item>
    <item name="android:gravity">center_vertical</item>
    <item name="android:paddingLeft">@dimen/contactus_tabs_text</item>
    <!--<item name="android:layout_marginBottom">@dimen/contactus_tab_margin_bottom</item>-->
</style>

<style name="edittext">
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">@dimen/change_password_edittext_height</item>
    <item name="android:background">@drawable/edittext_border</item>
    <item name="android:textSize">@dimen/edittext_textsize</item>
    <item name="android:singleLine">true</item>
    <item name="android:paddingLeft">@dimen/edittext_paddingLeft</item>
    <item name="android:paddingRight">@dimen/edittext_paddingRight</item>
    <item name="android:layout_marginLeft">@dimen/edittext_marginleft</item>
    <item name="android:layout_marginRight">@dimen/edittext_marginleft</item>
    <item name="android:textColorHint">@color/hint_text_color</item>
    <item name="android:inputType">textNoSuggestions</item>
    <item name="android:textColor">@color/hint_textcolor</item>
</style>



<style name="allfield">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:textSize">@dimen/allfiled_textsize</item>
</style>

<style name="verification_edittext">
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">@dimen/verification_widgets_height</item>
    <item name="android:layout_marginTop">@dimen/image_margintop</item>
    <item name="android:layout_marginLeft">@dimen/edittext_marginleft</item>
    <item name="android:layout_marginRight">@dimen/edittext_marginleft</item>
    <item name="android:paddingBottom">@dimen/edittext_paddingBottom</item>
    <item name="android:paddingTop">@dimen/edittext_paddingTop</item>
    <item name="android:paddingLeft">@dimen/edittext_paddingLeft</item>
    <item name="android:paddingRight">@dimen/edittext_paddingRight</item>
</style>

<style name="verification_button" parent="button">
    <item name="android:layout_height">@dimen/verification_widgets_height</item>
    <item name="android:layout_marginLeft">@dimen/varify_margin_left_right</item>
    <item name="android:layout_marginRight">@dimen/varify_margin_left_right</item>
    <item name="android:layout_marginTop">@dimen/varify_margin_top</item>
    <item name="android:textColor">@color/white</item>
    <item name="android:textSize">@dimen/btn_textsize</item>
</style>

<style name="btn_back_next">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">@dimen/button_height</item>
    <item name="android:textColor">@color/white</item>
    <item name="android:textSize">@dimen/btn_textsize</item>
</style>




<style name="phone">
    <item name="android:background">@drawable/edittext_border</item>
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">@dimen/edittext_height</item>
    <item name="android:textSize">@dimen/edittext_textsize</item>
    <item name="android:singleLine">true</item>
    <item name="android:paddingLeft">@dimen/edittext_paddingLeft</item>
    <item name="android:paddingRight">@dimen/edittext_paddingRight</item>
    <item name="android:paddingTop">@dimen/edittext_paddingTop</item>
    <item name="android:paddingBottom">@dimen/edittext_paddingBottom</item>
    <item name="android:textColor">@color/hint_textcolor</item>
</style>

<style name="dob_layout">
    <item name="android:background">@drawable/edittext_border</item>
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:layout_marginLeft">@dimen/edittext_marginleft</item>
    <item name="android:layout_marginRight">@dimen/edittext_marginleft</item>
</style>

<style name="date_of_birth">
    <item name="android:background">#00000000</item>
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">@dimen/edittext_height</item>
    <item name="android:textSize">@dimen/edittext_textsize</item>
    <item name="android:singleLine">true</item>
    <item name="android:paddingLeft">@dimen/edittext_paddingLeft</item>
    <item name="android:paddingRight">@dimen/edittext_paddingRight</item>
</style>

<style name="button">
    <item name="android:textColor">@color/white</item>
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">@dimen/button_height</item>
    <item name="android:layout_marginTop">@dimen/button_margintop</item>
    <item name="android:layout_marginLeft">@dimen/edittext_marginleft</item>
    <item name="android:layout_marginRight">@dimen/edittext_marginleft</item>
</style>

<style name="datepicker" parent="Theme.AppCompat.Light.Dialog">
    <item name="colorPrimary">@color/blue</item>
    <item name="colorPrimaryDark">@color/white</item>
    <item name="colorAccent">@color/gray</item>

</style>


<style name="date_picker_theme" parent="@android:style/Theme.Holo.Light.Dialog">
    <item name="android:textColorPrimary">@color/theme_grey</item>
    <item name="android:textColor">@color/theme_grey</item>

</style>



<style name="spinner_drop_down_icon">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:layout_alignParentRight">true</item>
    <item name="android:layout_centerVertical">true</item>
    <item name="android:textColor">@color/theme_grey</item>
    <item name="android:textSize">@dimen/spinner_drop_down_icon_textsize</item>
    <item name="android:paddingRight">@dimen/spinner_drop_down_icon_paddingRight</item>
    <item name="android:text">@string/icon_down_arrow</item>
</style>
<style name="select_dialog_container">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:layout_marginBottom">@dimen/select_dialog_container_marginBottom</item>
</style>

<!-- -Show Alert Dialog -->
<style name="dialog_show_alert">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:layout_centerHorizontal">true</item>
    <item name="android:maxWidth">@dimen/show_alert_dialog_title_maxwidth</item>
    <item name="android:paddingTop">@dimen/show_alert_title_paddingTopBottom</item>
    <item name="android:paddingBottom">@dimen/show_alert_title_paddingTopBottom</item>
    <item name="android:paddingLeft">@dimen/show_alert_title_paddingLeftRight</item>
    <item name="android:paddingRight">@dimen/show_alert_title_paddingLeftRight</item>
    <item name="android:gravity">center</item>
    <item name="android:textColor">@color/black</item>
    <item name="android:textSize">@dimen/show_alert_title_textsize</item>
</style>
<style name="select_dialog_horizontal_line">
    <item name="android:layout_width">@dimen/select_dialog_horizontal_line_width</item>
    <item name="android:layout_height">@dimen/select_dialog_horizontal_line_height</item>
</style>

<style name="show_dialog_button" parent="select_dialog_button">
    <item name="android:layout_width">@dimen/show_alert_dialog_button_width</item>
    <item name="android:layout_height">@dimen/show_alert_dialog_button_height</item>
    <item name="android:gravity">center</item>
    <item name="android:textColor">@color/gray</item>
    <item name="android:textSize">@dimen/show_alert_dialog_button_textsize</item>
</style>
<style name="select_dialog_button">
    <item name="android:layout_width">@dimen/select_dialog_button_width</item>
    <item name="android:layout_height">@dimen/select_dialog_button_height</item>
    <item name="android:gravity">center</item>
    <item name="android:textColor">@color/gray</item>
    <item name="android:textSize">@dimen/select_dialog_button_textsize</item>
</style>

<style name="work_location_dialog_container">
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">@dimen/work_location_dialog_height</item>
    <item name="android:layout_centerInParent">true</item>
    <item name="android:layout_marginRight">@dimen/work_location_dialog_margin</item>
    <item name="android:layout_marginLeft">@dimen/work_location_dialog_margin</item>
    <item name="android:background">@color/white</item>
</style>

<style name="dialog_header_tab">
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">@dimen/contact_us_tabs_height</item>
    <item name="android:orientation">horizontal</item>
    <item name="android:gravity">center_vertical</item>
</style>

<style name="NoTitleDialog" parent="Theme.AppCompat.Dialog">
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowActionBar">false</item>
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
</style>


<style name="MyCustomTextAppearanceTabLayout" parent="TextAppearance.Design.Tab">
    <item name="textAllCaps">false</item>
    <item name="android:textAllCaps">false</item>
</style>

<!-- circle_polygon icon -->
<style name="add_edit_notification_day_circle_icon">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:textSize">@dimen/add_edit_notification_day_circle_icon_text_size</item>
    <item name="android:text">@string/icon_circle</item>
    <item name="android:textColor">@color/week_day_unselected</item>
</style>

<style name="add_edit_notification_day_text">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:textSize">@dimen/add_edit_notification_day_text_size</item>
    <item name="android:text">@string/icon_circle</item>
    <item name="android:gravity">center</item>
    <item name="android:textStyle">bold</item>
    <item name="android:textColor">@color/week_day_unselected_text_color</item>
    <item name="android:layout_centerInParent">true</item>
</style>
<style name="add_edit_notification_day_of_the_week_layout">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:layout_marginLeft">@dimen/add_edit_notification_day_of_the_week_layout_margin_left</item>
</style>

<style name="patient_medical_information_tab_textView">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:textColor">@color/theme_grey</item>
    <item name="android:textSize">@dimen/textview_textsize</item>
    <item name="android:layout_marginTop">@dimen/login_marginTop</item>
</style>

<style name="patient_medical_information_tab_editText">
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">match_parent</item>
    <item name="android:textColor">@color/theme_grey</item>
    <item name="android:textSize">@dimen/edittext_textsize</item>
    <item name="android:paddingLeft">@dimen/dimen_2dp</item>
    <item name="android:inputType">textMultiLine|textNoSuggestions</item>
    <item name="android:scrollbars">vertical</item>
    <item name="android:gravity">top</item>
    <item name="android:hint">@string/na</item>
</style>

<style name="my_health_item_list">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">@dimen/health_item_edit_text_1_hight</item>
    <item name="android:textSize">@dimen/my_health_item_text_size</item>
    <item name="android:textColor">@color/theme_grey</item>

</style>

<style name="my_health_item_list_1">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:textSize">@dimen/my_health_item_text_lable_size</item>
    <item name="android:textColor">@color/theme_grey</item>
</style>

<!-- My _Health_list_item -->
<style name="my_health_list_item_edit_text_1">
    <item name="android:layout_height">@dimen/health_item_edit_text_1_hight</item>
    <item name="android:layout_width">@dimen/health_item_edit_text_1_width</item>
    <item name="android:textSize">@dimen/textview_textsize</item>
    <item name="android:textColor">@color/theme_grey</item>
    <item name="android:padding">@dimen/health_item_edit_text_padding</item>
    <item name="android:inputType">text</item>
    <item name="android:background">@drawable/edittext_border</item>
</style>

<style name="my_health_list_item_edit_text_2">
    <item name="android:layout_height">@dimen/health_item_edit_text_1_hight</item>
    <item name="android:layout_width">@dimen/health_item_edit_text_2_width</item>
    <item name="android:textSize">@dimen/textview_textsize</item>
    <item name="android:padding">@dimen/health_item_edit_text_padding</item>
    <item name="android:textColor">@color/theme_grey</item>
    <item name="android:inputType">textNoSuggestions</item>
    <item name="android:background">@drawable/edittext_border</item>
</style>

<style name="my_health_item_list_dot_icon">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:textSize">@dimen/dimen_3dp</item>
    <item name="android:textColor">@color/theme_grey</item>
    <item name="android:paddingBottom">@dimen/padding</item>
    <item name="android:paddingTop">@dimen/padding</item>
    <item name="android:paddingLeft">@dimen/padding_left_right</item>
    <item name="android:paddingRight">@dimen/padding_left_right</item>
</style>

<style
    name="add_edit_member_firstname" parent="firstname">
    <item name="android:layout_height">@dimen/add_edit_member_firstname_height</item>
</style>

<style name="EditDocDialog" parent="Theme.AppCompat.Dialog">

    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">match_parent</item>
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowActionBar">false</item>
    <item name="android:textColor">@color/theme_grey</item>
    <item name="android:windowSoftInputMode">stateHidden|adjustPan</item>
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>

</style>

<style name="dialog_edit_doc_container">
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:layout_centerInParent">true</item>

    <item name="android:background">@color/theme_grey</item>

    <item name="android:layout_marginBottom">@dimen/dialog_mark_as_error_relativeLayout2_marginTop</item>
</style>

<style name="edit_doc_edittext">
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">@dimen/dialog_edit_doc_edittext_height</item>
    <item name="android:layout_marginTop">@dimen/dialog_edit_doc_edittext_marginTop</item>
    <item name="android:paddingBottom">@dimen/error_report_edittext_paddingBottom</item>
    <item name="android:paddingLeft">@dimen/edittext_paddingLeft</item>
    <item name="android:paddingTop">@dimen/error_report_edittext_paddingTop</item>
    <item name="android:textSize">@dimen/edittext_textsize</item>
    <item name="android:textColorHint">@color/hint_text_color</item>


</style>

<style name="error_report_send_text">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">@dimen/error_report_send_text_height</item>
    <item name="android:gravity">center</item>
    <item name="android:textColor">@color/white</item>
    <item name="android:background">@drawable/edittext_border</item>
    <item name="android:layout_marginTop">@dimen/error_report_send_text_marginTop</item>
    <item name="android:textSize">@dimen/error_report_send_text_textSize</item>
</style>

<style name="error_report_closed_icon">
    <item name="android:layout_width">@dimen/error_report_closed_icon_width</item>
    <item name="android:layout_height">@dimen/error_report_closed_icon_height</item>
    <item name="android:textSize">@dimen/error_report_closed_icon_textsize</item>
    <item name="android:background">@drawable/circle_close_in_dialog</item>
    <item name="android:layout_marginTop">@dimen/error_report_closed_icon_marginTop</item>
    <item name="android:layout_marginRight">@dimen/error_report_closed_icon_marginRight</item>
    <item name="android:padding">@dimen/error_report_close_icon_paddingLeft</item>
</style>


<!--Calendar Styles-->
<style name="TextAppearance.MaterialCalendarWidget.Header" parent="android:TextAppearance.DeviceDefault.Small">
    <item name="android:textStyle">bold</item>
</style>

<style name="TextAppearance.MaterialCalendarWidget.Date" parent="android:TextAppearance.DeviceDefault.Small">
    <item name="android:textSize">12sp</item>
    <item name="android:textColor">@color/mcv_text_date_light</item>
</style>

<style name="TextAppearance.MaterialCalendarWidget.WeekDay" parent="android:TextAppearance.DeviceDefault.Small">
    <item name="android:textSize">12sp</item>
</style>

<style name="dialog_mark_weight_history">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">@dimen/health_item_weight_history_hight</item>
    <item name="android:layout_centerInParent">true</item>
    <item name="android:layout_margin">@dimen/dialog_mark_as_error_relativeLayout2__margin</item>
    <item name="android:layout_marginTop">@dimen/dialog_mark_as_error_relativeLayout2_marginTop</item>
    <item name="android:background">@color/white</item>
    <item name="android:paddingBottom">@dimen/dialog_mark_as_error_relativeLayout2_paddingBottom</item>
</style>

<style name="my_health_history_item">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:textSize">@dimen/textview_textsize</item>
    <item name="android:textColor">@color/theme_green</item>
</style>

<style name="dialog_mark_as_error_container">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:layout_centerInParent">true</item>
    <item name="android:layout_margin">@dimen/dialog_mark_as_error_relativeLayout2__margin</item>
    <item name="android:layout_marginTop">@dimen/dialog_mark_as_error_relativeLayout2_marginTop</item>
    <item name="android:background">@color/theme_grey</item>
    <item name="android:paddingBottom">@dimen/dialog_mark_as_error_relativeLayout2_paddingBottom</item>
    <item name="android:layout_marginBottom">@dimen/dialog_mark_as_error_relativeLayout2_marginTop</item>
</style>
<style name="dialog_mark_as_error_title_icon">
    <item name="android:layout_width">@dimen/dialog_mark_as_error_title_icon_width</item>
    <item name="android:layout_height">@dimen/dialog_mark_as_error_title_icon_height</item>
    <item name="android:textSize">@dimen/dialog_mark_as_error_title_icon_textsize</item>
    <item name="android:background">@drawable/circle_text_in_dialog</item>


</style>
<style name="dialog_mark_as_error_title">
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">50dp</item>
    <item name="android:layout_centerHorizontal">true</item>
    <item name="android:layout_marginLeft">@dimen/dialog_mark_as_error_title_marginLeft</item>
    <item name="android:textSize">@dimen/dialog_mark_as_error_title_textSize</item>
</style>
<style name="dialog_confirm_cancel" parent="dialog_mark_as_error_title">
    <item name="android:textSize">@dimen/dialog_confirm_cancel_title_textSize</item>
</style>
<style name="dialog_cofirm_cancel_send_text" parent="error_report_send_text">
    <item name="android:layout_height">@dimen/error_report_send_text_height</item>
</style>

<style name="patient_medical_information_tab_editText_nested_scroll">
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">@dimen/medical_information_editText_height</item>
    <item name="android:padding">@dimen/edittext_paddingRight</item>
    <item name="android:scrollbars">vertical</item>
    <item name="android:layout_marginTop">@dimen/login_marginTop</item>
    <item name="android:gravity">top</item>
    <item name="android:background">@drawable/edittext_border</item>
</style>

<style name="MIP_theme" parent="AppTheme">

    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>

</style>


<style name="AppTheme.Picker" parent="Theme.AppCompat.Light.NoActionBar" >
    <item name="android:textColorPrimary">@color/theme_grey</item>
</style>

<style name="DatePickerDialog" parent="Theme.AppCompat.Light.Dialog">
<item name="android:windowNoTitle">true</item>
<item name="android:windowActionBar">false</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>

<style name="SearchDialogAnimation">
    <item name="android:windowEnterAnimation">@anim/slide_up</item>
    <item name="android:windowExitAnimation">@anim/slide_down</item>
</style>

<style name="AppTheme.ActionBar.Transparent" parent="AppTheme">
    <item name="android:windowContentOverlay">@null</item>
    <item name="windowActionBarOverlay">true</item>
    <item name="colorPrimary">@android:color/transparent</item>
</style>

AppTheme apply to Application

Hi @jatin ,

You need to use the Theme.MaterialComponent in your app to use UI Kit. As the UI Kit is built on the latest version and it requires this theme.

Please add the following dependency in your (app level) build gradle

dependencies {
  implementation 'com.google.android.material:material:1.2.0-alpha04'
} 

And please make the below-mentioned changes in your style.xml

<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar.Bridge">

    <!-- Customize your theme here. -->

    </style>

Visit our documentation to know more about UI Kit.

You can visit the below mentioned link to know about Material Theme.
https://developer.android.com/guide/topics/ui/look-and-feel

How do i add my patient list as friends

Hi @jatin,

You can use the Friends API to add your patients as friends.
https://prodocs.cometchat.com/reference#add-friends

How do i add my patient list as friends in android

Hi,
Following code always return success even group is not exists.
GroupsRequest groupsRequest = new GroupsRequest.GroupsRequestBuilder().setSearchKeyWord(“abc”).build();
Please Assists me
Thanks

Hello @jatin
The searchKeyword parameter provided by you in the GroupsRequest class returns the groups that contain the string specified(in you case “abc”). The request will always return success i.e it will return the groups that have “abc” in their name. If there are no groups with “abc”, it will return an empty list.

hope this helps

ok, Thanks,

There is another one problem, I have created two users Use1 and User2. Then deleted both the user from cometchat dashboard and than trying to create user1 with same UID and Name using cometchat api it will throw the exception UID already taken.

please assist me