title: Can't delete sqlite row
body: <p>I'm trying to delete a row of a listview that get values from a db sqlite. the delete method is this one:</p>
  
  <pre><code> public boolean deleteRow(long id) {
          String where  = "WHERE " + DataBaseWrapper.APP_ID + "=" + id;
          return database.delete(DataBaseWrapper.SC_TABLE, where, null) != 0;
      }
  </code></pre>
  
  <p>i tried two way now and none works; the first was use the <code>OnItemLongClickListener</code> in my fragment in this way</p>
  
  <pre><code>lvTest.setLongClickable(true);
          lvTest.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
  
              @Override
              public boolean onItemLongClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
                  shOperations.deleteRow(id);
                  return false;
              }
          });
  </code></pre>
  
  <p>But seems that doesn't do anything.. i tried to put some logs but they not showing up. I also tried set the return to <code>true</code> without success.. the other way was from the adapter; in getView method i wrote this:</p>
  
  <pre><code>mViewHolder.tvTitle.setOnLongClickListener(new View.OnLongClickListener() {
              ShortcutsOperations scOperations = new ShortcutsOperations(DrawerActivity.instance);
              public boolean onLongClick(View arg0) {
                  scOperations.deleteRow(getItemId(position));
                  return false;
              }
          });
  </code></pre>
  
  <p>but nothing change.. which could be the problem?</p>