Hi,
I have an app that reads Contacts and displays them in a list. I
want to modify some of the data before passing it to the list. Is that
possible? Here is my applications OnCreate() method
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mCursor = getContentResolver().query(People.CONTENT_URI,
null, null, null, null);
startManagingCursor(mCursor);
ListAdapter adapter = new SimpleCursorAdapter(
this, // Context.
R.layout.localizer_row,
mCursor,
new String[] {People.NAME, People.NUMBER},
new int[] {R.id.text1, R.id.text2});
setListAdapter(adapter);
}
For instance I want to change the Phone number of each of the contacts
(e.g. prefix it with country code). Is that possible? If so, how?
I also want to add another column to the cursor. This column will have
data from another source (Eg. Contact Category, Photo etc.). Is that
possible? If so how?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---