1

I am developing a chat app like Viber/Whatsapp. I would like to add a custom indicator in the default contact app of the device. This indicator is to show whether the user is online/offline in my application.

While I was researching I could understand that we can programmatically create an account like Google and thereby we can add our app icon in the device contact app (reference). But can we change the icon dynamically?

Kindly help me if anyone knows more about the contact list handling in Android.

Thanks a lot in advance.

Community
  • 1
  • 1
Jayakrishnan Salim
  • 977
  • 1
  • 10
  • 24

1 Answers1

0

For this you have to use ContentProvider

There is a very simple example here where you can get all the Contacts

also you have to customize your

ListView

according to your needs

I think it may not be possible to customize the ui of internal application. you can only use the intent filter to register your app to listen particular intent like share with

<intent-filter>
        <action android:name="android.intent.action.SEND" />
        <action android:name="android.intent.action.SENDTO" />
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />

    <data android:scheme="sms" />
    <data android:scheme="smsto" />
    <data android:scheme="mms" />
    <data android:scheme="mmsto" />
</intent-filter>

also check this and this Link if it helps you

This will go in your android manifest.Hope This will help :)

Community
  • 1
  • 1
Nitin
  • 1,966
  • 4
  • 22
  • 53