title: Refresh listview content when there is an sqlite database change
body: <p>i'am getting my <code>Listview</code> data from an <code>sqlite</code> <code>database</code> like this </p>
  
  <pre><code>    ArrayAdapter&lt;String&gt; aa;
          ArrayList&lt;String&gt; arrayList = new ArrayList&lt;String&gt;();
  
  
      aa = new ArrayAdapter&lt;String&gt;(getActivity(),
                      R.layout.row_listview,  arrayList);
              setListAdapter(aa);
  Cursor cursor8 = db.rawQuery("SELECT * FROM test21", null);
              if(cursor8.getCount() == 0)
              {
  
  
                  textView5.setVisibility(View.VISIBLE);
  
              }cursor8.close();
  
  
  
  
                      Cursor cursor = db.rawQuery("SELECT * FROM test21", null);
                      //  Toast.makeText(myContext, ""+cursor.getCount(), Toast.LENGTH_LONG).show();
                      if(cursor.moveToFirst())
  
                      {
                          do {
                              arrayList.add(cursor.getString(3));
  
  
  
  
                             }
                          while (cursor.moveToNext());
                      }
  </code></pre>
  
  <p>When i click another button it remove all the data of the <code>sqlitedatabase</code>.</p>
  
  <p>How can i <code>refresh</code> the content of the <code>listview</code> because there is now nothing. I  always need to go back in the <code>activity</code> each time :( </p>