Using java Syntax Highlighting
- Cursor c = getContentResolver().query(Phones.CONTENT_URI, null, null, null, null);
- startManagingCursor(c);
- adapter = new SimpleCursorAdapter(this,
- android.R.layout.simple_list_item_2, c,
- new String[] { Phones.NAME, Phones.NUMBER },
- new int[] { android.R.id.text1, android.R.id.text2 });
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
Each item contain Name, Number.
What if I want to edit all numbers representation (for example format it from XXXXXXX to XXX-XX-XX)?
How can I edit entities in adapter or create new adapter based on current, but modified?
Thanks.


