title: cannot be cast to android.database.Cursor
body: <p>I want get  info Object in row item ListView ..listview load info in database..</p>
  
  <p>add  Income</p>
  
  <pre><code>public void addIncome(OIncome income) {
      SQLiteDatabase db = this.getWritableDatabase();
      ContentValues values = new ContentValues();
      values.put(TABLE_INCOME_COLUMN_NAME, income.get_name());
      values.put(TABLE_INCOME_COLUMN_CATEGORY, income.get_category() + 1);
      values.put(TABLE_INCOME_COLUMN_AMOUNT, income.get_amount());
      values.put(TABLE_INCOME_COLUMN_DATE, income.get_date());
      values.put(TABLE_INCOME_COLUMN_TIME, income.get_time());
      values.put(TABLE_INCOME_COLUMN_NOTE, income.get_note());
      db.insert(TABLE_INCOME, null, values);
      db.close();
  }
  </code></pre>
  
  <p>Get Income</p>
  
  <pre><code>public List&lt;OIncome&gt; getIncome() {
  
      List&lt;OIncome&gt; list = new ArrayList&lt;OIncome&gt;();
  
      String selectIncome = "SELECT * FROM " + TABLE_INCOME + " INNER JOIN "
              + TABLE_CATEGORY + " ON " + TABLE_CATEGORY + "."
              + TABLE_CATEGORY_COLUMN_ID + "=" + TABLE_INCOME + "."
              + TABLE_INCOME_COLUMN_CATEGORY + " WHERE " + TABLE_INCOME + "."
              + TABLE_INCOME_COLUMN_DATE + "=" + "'" + GET_DATE + "'"
              + " ORDER BY " + TABLE_INCOME + "." + TABLE_INCOME_COLUMN_DATE
              + " DESC";
      SQLiteDatabase db = this.getWritableDatabase();
      Cursor cursor = db.rawQuery(selectIncome, null);
      if (cursor.moveToFirst()) {
          do {
              OIncome income = new OIncome();
              income.set_amount(cursor.getFloat(3));
              income.set_category(cursor.getInt(8));
              income.set_name(cursor.getString(1));
              income.set_date(cursor.getString(4));
              income.set_time(cursor.getString(5));
              list.add(income);
          } while (cursor.moveToNext());
  
      }
  
      return list;
  
  }
  </code></pre>
  
  <p>in class ListIncomeAdapter </p>
  
  <pre><code>@Override
  public View getView(int position, View convertView, ViewGroup parent) {
      // TODO Auto-generated method stub
      if (convertView == null) {
          LayoutInflater inflater = context.getLayoutInflater();
          convertView = inflater.inflate(layout, null);
      }
      OIncome income = list.get(position);
      TextView tvnameincome = (TextView) convertView
              .findViewById(R.id.tvnameincome);
      TextView tvdateincome = (TextView) convertView
              .findViewById(R.id.tvdateincome);
      TextView tvtimeincome = (TextView) convertView
              .findViewById(R.id.tvtimeincome);
      TextView tvamountincome = (TextView) convertView
              .findViewById(R.id.tvamountincome);
      ImageView imglistincome = (ImageView) convertView
              .findViewById(R.id.imglistincome);
      Other other = new Other();
      // OCatergory catergory = data.get(position);
      tvnameincome.setText(income.get_name());
      tvdateincome.setText(other.convertDateYear(income.get_date()));
      tvtimeincome.setText(income.get_time());
      tvamountincome.setText(income.get_amount() + "");
  
      imglistincome.setImageResource(income.get_category());
      return convertView;
  }
  </code></pre>
  
  <p>How can I get the information of that item..</p>
  
  <p>please give me a few lines of 
  get information on that item</p>