title: Retrieving data from SQLite database into listView
body: <p>Instead of retriving the data it return package name in each list I didn't find my mistake.Plz help me .This is my DbHelper class which extends SQLiteOpenHelper    </p>
  
  <pre><code> public List&lt;DICTIONARY&gt; getAllcontacts() {
              List&lt;DICTIONARY&gt; meaningList = new ArrayList&lt;DICTIONARY&gt;();
  
              String selectQuery = "SELECT  * FROM " + Table_Name;
  
              SQLiteDatabase db = this.getWritableDatabase();
              Cursor cursor = db.rawQuery(selectQuery, null);
  
  
              if (cursor.moveToFirst()) {
                  do {
                      DICTIONARY dictionary = new DICTIONARY();
                      dictionary.setId(Integer.parseInt(cursor.getString(0)));
                      dictionary.setWord(cursor.getString(1));
                      dictionary.setMeaning(cursor.getString(2));
                      // Adding contact to list
                      meaningList.add(dictionary);
                  } while (cursor.moveToNext());
              }
  
              // return meaning list
              return meaningList;
          }
  </code></pre>
  
  <p>This is my MainActivity class  </p>
  
  <pre><code> DbHelper db = new DbHelper(MainActivity.this);
    List&lt;DICTIONARY&gt; dictionary = db.getAllContacts(); 
          ArrayAdapter&lt;DICTIONARY&gt; arrayAdapter = new ArrayAdapter&lt;DICTIONARY&gt;(MainActivity.this,android.R.layout.simple_list_item_1, dictionary);
          lv.setAdapter(arrayAdapter);
          }
  </code></pre>