Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int i = 0 ;pseudo.size() <= i; i++){
- ContentValues values = new ContentValues();
- String contact = (String) pseudo.get(i);
- values.put("pseudo", contact);
- values.put("adresse", "test");
- values.put("image", "test");
- values.put("ID", "5");
- dbwrite.insert("Contact", null, values);
- }
- String[] retour = {
- "pseudo",
- "xmppadresse",
- "image", "ID"
- };
- Cursor cursor = dbread.query("Contact", retour, null, null, null, null, "pseudo");
- Log.d("debug", "populateWithInitialContacts: "+cursor.getCount());
- while(cursor.moveToNext()) {
- String pseudo = cursor.getString(cursor.getColumnIndexOrThrow("pseudo"));
- Log.d("debug", "getcontact: "+pseudo);
- listcontact.add(new Contact(pseudo));
- }
- cursor.close();
- for(int i = 0 ;pseudo.size() <= i; i++)
- for(int i = 0 ;i < pseudo.size(); i++)
Add Comment
Please, Sign In to add comment