I've implemented a contacts app, and I would like my application's contact names to be displayed in the device's call log history (Phone app) in case I receive/make a call to these numbers. How could I achieve that?
Edit Call history names
1.1k Views Asked by Fivos At
2
There are 2 best solutions below
0
Fivos
On
Thank you @PedroHawk. I found the answer in the link you provided. More specifically, I will create an Account of my app in the Device Accounts and then use a SyncAdapter to sync the contact data from my web service to the ContactsProvider of the device.
Related Questions in ANDROID
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in ANDROID-CONTACTS
- Contacts.vcf file doesn't have all the information that is displayed by the Contacts app
- How to Share a contact that doesn't exists? (only info) in Android?
- how to fetch my device all contacts list to my flutter application
- Duplicate phone numbers for each contacts android
- Unable to get contact address from the phone contact
- Pick Contacts starting from a specific alphabet from phone contact list in android studio
- how to read contacts when app is terminated in android 13?
- Can a contact directory hold messenger links aka custom mine_types in the lookup entities?
- Change contact photo by passing image uri using Intent
- how to insert city state and zip code to android contact using intent?
- Android get contacts getting really long when multiple Google accounts are connected to phone
- android.app.Person, or short uri to Contact
- Contacts Provider Android for Enterprise
- Fetching contacts' data into a RecyclerView takes too long time
- Black screen and slow startup on starting app, when getting contact information into a RecyclerView?
Related Questions in ANDROID-SYNCADAPTER
- Achieving Data Synchronization in Android App with Kotlin - Best Approach and Option?
- Sync Contact Adapter
- Android Contacts not working with custom account_type on all contacts
- In Android, I'm unable to set a Contacts sync adapter to be read-only
- How to allow periodic SyncAdapter to run when app is in 'force stopped' state
- Why does the doc do not use `this` i.e `Service` for the argument for `Context` in the documentation?
- SyncAdapter onPerformSync not called for MediaProvider
- Syncing with server in specific interval at non-active hours
- How to sync contacts like WhatsApp and Telegram in Android Studio
- SyncAdapter to receive chat messages?
- Should I use SyncAdapter or AlarmManager to sync critical data with server in 2020?
- ContentResolver requestSync not triggering SyncAdapter onPerformSync when wifi not available but cellular data is on samsung device
- Android Coroutines in SyncAdapter being Interrupted
- Difference between Android Sync Manager and Work Manager
- Enable auto sync programmatically
Related Questions in CALLLOG
- How can I write/edit the call log with flutter?
- Show Popup Dialog After The Ending Call in Flutter
- Android call log query giving no such column: verstat (code 1 SQLITE_ERROR)
- How to parse the com.android.calllogbackup file
- How to find a call log is coming from sim1 or sim2 flutter?
- Android Call logs return zero results
- Ktor Log Call Duration
- Get date from datestring
- CallLog.Calls.CACHED_LOOKUP_URI not working on Xiaomi/MIUI devices
- How to access CALL LOG Permission Android 11 (API 30)?
- App does not display the call log after allowing android.permission.READ_CALL_LOG once
- permission to READ_CALL_LOG is not working in react-native expo
- Issue: Violation of Permissions policy, Call Log Permission
- Playstore - App getting rejected due to 'android.permission.READ_CALL_LOG'
- Delete all phone call logs programmatically
Related Questions in ANDROID-ACCOUNT
- How to get all available accounts (including multi-SIM cards) that a contact can be saved on?
- How to modify a file on the google drive from multiple android devices?
- Caused by java.lang.SecurityException: uid ... cannot explicitly add accounts of type: ... Android P and Android 10
- Android multi-user: get current user info
- Enable auto sync programmatically
- Android Accounts
- PWA authentication using Android account
- Adding custom rows to contact details, only works with one contact
- Get accounts configured count in android device
- Where/how to store sensitive information?
- Edit Call history names
- AccountManager.newChooseAccountIntent without asking to create account
- Not able to find android.provider.CONTACTS_STRUCTURE metadata of contact apps
- (AccountManager) context.getSystemService(Context.ACCOUNT_SERVICE) vs Accountmanager.get(context)
- AccountManager: when to set result?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The
CallLog.Callstable contains fields for caching names, because these are cached names, they're not expected to always be true, and are refreshed from time to time.Usually, in most Phone/Call-log apps, when you open the call-log it'll display the calls list along with their cached names stored in the
Callstable, and then spin up a background service that refreshes cached names, adding names to numbers recently saved as contacts, or updating names that had recently changed.So if your app stored some number from the call log as a contact, if you then launch the call log app you should see the updated name appearing within a second or two.
If you want to store that name programatically in your code, you can do that easily: