Guest User

Untitled

a guest
Sep 25th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. for(int i = 0 ;pseudo.size() <= i; i++){
  2. ContentValues values = new ContentValues();
  3. String contact = (String) pseudo.get(i);
  4. values.put("pseudo", contact);
  5. values.put("adresse", "test");
  6. values.put("image", "test");
  7. values.put("ID", "5");
  8. dbwrite.insert("Contact", null, values);
  9. }
  10.  
  11. String[] retour = {
  12. "pseudo",
  13. "xmppadresse",
  14. "image", "ID"
  15. };
  16. Cursor cursor = dbread.query("Contact", retour, null, null, null, null, "pseudo");
  17. Log.d("debug", "populateWithInitialContacts: "+cursor.getCount());
  18. while(cursor.moveToNext()) {
  19. String pseudo = cursor.getString(cursor.getColumnIndexOrThrow("pseudo"));
  20. Log.d("debug", "getcontact: "+pseudo);
  21. listcontact.add(new Contact(pseudo));
  22. }
  23. cursor.close();
  24.  
  25. for(int i = 0 ;pseudo.size() <= i; i++)
  26.  
  27. for(int i = 0 ;i < pseudo.size(); i++)
Add Comment
Please, Sign In to add comment