this is my query i want to load all user_name and put into a spinner -------------------------- Cursor c = db.query(UserSchema.TABLE_NAME, new String[]{UserSchema.NAME}, null, null, null, null, null); c.moveToFirst(); CharSequence[] newlist = new CharSequence[c.getCount()]; for(int i = 0;i<newlist.length;i++){ newlist[i] = c.getString(0); c.moveToNext(); } c.close();
-- 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