A little bit more info....
Hi again Erel,
I've made sure that the phone is running the latest firmware and contacted LG support for assistance. But in the meantime I've been trying various things to see if I could access any of the phones contacts, e.g. saving the conatcts to the SIM and to the SD card.
Over the last couple of nights I've been searching the web for a solution and found that the Android SDK comes with samples, one of which is called ContactManager. After a lot of frustration getting to grips with Eclipse (it's no where near as simple as B4A), I've finally managed to get the sample onto the phone so as to test if any contacts are listed and I can report that they do show up correctly.
Below is the section of code that actually gets the contacts list...
private Cursor getContacts()
{
// Run query
Uri uri = ContactsContract.Contacts.CONTENT_URI;
String[] projection = new String[] {
ContactsContract.Contacts._ID,
ContactsContract.Contacts.DISPLAY_NAME
};
String selection = ContactsContract.Contacts.IN_VISIBLE_GROUP + " = '" +
(mShowInvisible ? "0" : "1") + "'";
String[] selectionArgs = null;
String sortOrder = ContactsContract.Contacts.DISPLAY_NAME + " COLLATE LOCALIZED ASC";
return managedQuery(uri, projection, selection, selectionArgs, sortOrder);
}
The contacts are only listed if mShowInvisible is False (Selecting the "show invisible contacts only" causes the contacts to disappear).
With this information is there anything that you might be able to do to help me list all contacts using B4Android?
Please help,
RandomCoder