... Cursor c = ppp.getAll(); String[] from = new String[] {"name","gender","income"};
int[] to = new int[] { R.id.text1,R.id.text2,R.id.text3}; SimpleCursorAdapter peoples = new SimpleCursorAdapter (this,R.layout.money_row, c, from, to); setListAdapter(peoples ); Try to use SimpleCursorAdapter to display data, but a question. a field type is numeric. when display it the value is 2000.12345 will be display 2000.12, save it in database field is 2000.1234 the value is 1.1234567 will be display 1.12346, save it in database field is 1.1234567 what's the problem? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---