StringBuilder ret = new StringBuilder(); //String ret[]; if(cc.moveToFirst()) { for(int i=0;i<cc.getCount();i++) { String name=cc.getString(i); ret.append(name); cc.moveToNext(); } } tv.setText(ret);
StringBuilder ret = new StringBuilder(); cursor.moveToFirst(); int i = 0; while (!cursor.isAfterLast()) { ret.append(cursor.getString(i++)); cursor.moveToNext(); } // Make sure to close the cursor cursor.close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)