Android: strange behaviour in QuickContactBadge

后端 未结 2 1398
慢半拍i
慢半拍i 2021-01-15 15:05

I\'m trying to use the QuickContactBadge. I would like to get an effect like this:

相关标签:
2条回答
  • 2021-01-15 15:43

    1) A caution: you must use API Level 5 or above to use this function.

    2) For taking to you on contact page: The function of this badge works in such a way that if a contact is already there then it will show you the quick contact badge else it will take you the "add contact" screen with this phone no pre filled in contact's info.

    So now, you need to save a contact with the phone no defined. After saving the contact, when you will click on the button next time, it will show you the desired results.

    0 讨论(0)
  • 2021-01-15 15:57

    You need to add the READ_CONTACTS permission to your AndroidManifest.xml file:

    <uses-permission android:name="android.permission.READ_CONTACTS" />
    
    0 讨论(0)
提交回复
热议问题