title: How to retrieve whole Row of data in Sqlite
body: <p>I want to retrieve a whole row at a time in sqlite database. All of them are strings. I wrote a method. 
  If anyone could check the error of this. 
  Thanks  </p>
  
  <pre><code>public ArrayList&lt;Integer&gt; queueAll_row(){
          String[] columns = new String[]{Key_row_ID,Key_Customer_name,Key_customer_nic,Key_roof,Key_floor,Key_walls,Key_toilets,Key_No_Rooms,Key_electricity,Key_drinkingWater,Key_status,Key_ownership
                  ,Key_hvBankAcc,Key_loansOfOtherBnks,Key_current_No_Emp,Key_new_Emp,Key_income_source1,Key_income_source2,Key_income_source3};
          Cursor cursor = ourDb.query(DB_Table, columns, 
                  null, null, null, null, null);
  
          ArrayList&lt;Integer&gt; values = new ArrayList&lt;Integer&gt;();
          cursor.moveToFirst();
          while (cursor.moveToNext()) {
              values.add(cursor.getInt(0));
          }
  
          return values;
      }
  </code></pre>