daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Sep 25th, 2018 64 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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++)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top