Depending on what information you want to show in ListView, the table you need to access is different, so I think it's a good idea to take a look at how the Android address book database is organized. The address book can store a variety of information, and the concept of an account exists, so it has a more complex structure than you think. The address book consists of three tables:
I think you should read the document below for more information.
Although the contact database is complex in structure, it is not difficult to implement only the ability to read contacts. I attached a link that is easily explained with the source code.
© 2024 OneMinuteCode. All rights reserved.