title: getView don't return data
body: <p>I want to display image + tel number.I have create a class for Contact :</p>
  
  <pre><code>public class Contact {
  
      private int CTC_ID;
      private byte[]  CTC_IMAGE;
      public String CTC_NOM;
      public String CTC_NUMERO;
  
      public Contact(){
      }
  
      public Contact(byte[] CTC_IMAGE, String CTC_NOM, String CTC_NUMERO){
          this.CTC_IMAGE = CTC_IMAGE;
          this.CTC_NOM = CTC_NOM;
          this.CTC_NUMERO = CTC_NUMERO;
      }
      public Contact(String CTC_NOM, String CTC_NUMERO){
          this.CTC_NOM = CTC_NOM;
          this.CTC_NUMERO = CTC_NUMERO;
      }
  
  
  
      public int getCTC_ID(){
          return CTC_ID;
      }
      public byte[] getCTC_IMAGE(){return CTC_IMAGE; }
      public String getCTC_NOM() {
          return CTC_NOM;
      }
      public String getCTC_NUMERO() {
          return CTC_NUMERO;
      }
  
      public void setCTC_ID(int CTC_ID) {
          this.CTC_ID = CTC_ID;
      }
      public void setCTC_IMAGE(byte[] CTC_IMAGE) { this.CTC_IMAGE = CTC_IMAGE;}
      public void setCTC_NOM(String CTC_NOM) { this.CTC_NOM = CTC_NOM;}
      public void setCTC_NUMERO(String CTC_NUMERO) {
          this.CTC_NUMERO = CTC_NUMERO;
      }
  
  
      public String toString(){
          return "ID : "+CTC_ID+"\nimage : "+CTC_IMAGE+"\nnom : "+CTC_NOM+"\nnumero : "+CTC_NUMERO;
      }
  }
  </code></pre>
  
  <p>For add contact into list I have my databaseHelper in methode fetchAllContactDetail :</p>
  
  <pre><code>public ArrayList&lt;Contact&gt; fetchAllContactDetail() {
      SQLiteDatabase db = this.getWritableDatabase();
      ArrayList&lt;Contact&gt; contactListe = new ArrayList&lt;&gt;();
  
      Cursor mCursor = db.query(TABLE_CONTACT, new String[]{"CTC_ID _id", KEY_CTC_IMAGE, KEY_CTC_IMAGE, KEY_CTC_NOM, KEY_CTC_NUMERO}, null, null, null, null, null);
  
      if (mCursor.moveToFirst()) {
          do {
              byte[] image = mCursor.getBlob(mCursor.getColumnIndex(KEY_CTC_IMAGE));
              String name = mCursor.getString(mCursor.getColumnIndex(KEY_CTC_NOM));
              String numero = mCursor.getString(mCursor.getColumnIndex(KEY_CTC_NUMERO));
              contactListe.add(new Contact(image, name, numero));
          } while (mCursor.moveToNext());
      }
      return contactListe;
  }
  </code></pre>
  
  <p>I have create ContactAdapter extends BaseAdapter :</p>
  
  <pre><code>public class ContactAdapter extends BaseAdapter {
  
      private Context context;
      private ArrayList&lt;Contact&gt; contactList = new ArrayList&lt;Contact&gt;();
  
  
      // Constructor
      public ContactAdapter(Context context, ArrayList&lt;Contact&gt; contactList) {
          this.context = context;
          this.contactList.addAll(contactList);
      }
      @Override
      public int getCount() {
          return contactList.size();
      }
  
      @Override
      public Object getItem(int position) {
          return contactList.get(position);
      }
  
      @Override
      public long getItemId(int position) {
          return position;
      }
  
      private class ViewHolder{
          ImageView img;
          TextView name;
      }
  
      @Override
      public View getView(int position, View view, ViewGroup viewGroup) {
          View row = view;
          ViewHolder holder = new ViewHolder();
  
          if(row == null){
              LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
              row = inflater.inflate(R.layout.contact_item, null);
          }
  
          Contact contact = contactList.get(position);
  
          if (contactList != null) {
              holder.name = (TextView) row.findViewById(R.id.name);
              holder.img = (ImageView) row.findViewById(R.id.img);
  
              holder.name.setText(contact.getCTC_NUMERO());
              byte[] contactImage = contact.getCTC_IMAGE();
              Bitmap bitmap = BitmapFactory.decodeByteArray(contactImage, 0, contactImage.length);
              holder.img.setImageBitmap(bitmap);
              row.setTag(holder);
          }
          return row;
  
      }
  }
  </code></pre>
  
  <p>And I return this in my mainActivity :</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
      private ListView lstViewContact;
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
                  setContentView(R.layout.activity_main);
  
                  lstViewContact = (ListView) findViewById(R.id.lvContact);
  
                  displayContact();
  
  }
  
      public void displayContact() {
  
          //On ouvre la base de données pour écrire dedans
          DatabaseHelper dbHelper = new DatabaseHelper(this);
          final ContactAdapter contactAdapter = new ContactAdapter(this, dbHelper.fetchAllContactDetail());
          lstViewContact.setAdapter(contactAdapter);
      }
  }
  </code></pre>
  
  <p>My database have 2 contact and it's return by contactListe</p>
  
  <p><a href="https://i.stack.imgur.com/rHJvs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rHJvs.png" alt="enter image description here"></a></p>
  
  <p>In my ContactAdapter the</p>
  
  <pre><code>@Override
  public int getCount() {
      return contactList.size();
  }
  </code></pre>
  
  <p>Return 2 it's ok.</p>
  
  <p>I don't say where is the problem.</p>
  
  <p>Thank's all for you're help.</p>