title: Can someone explain what does this code do?
body: <pre><code>lv.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
      @Override
      public boolean onItemLongClick(AdapterView&lt;?&gt; parent, View view, int position,long id) {
         try {
             text.delete(position, position);
             String item = strArr.get(position);
             strArr.remove(item);
             adapter = new ArrayAdapter&lt;String (getApplicationContext(), android.R.layout.simple_list_item_1, strArr);
             lv.setAdapter(adapter);
             return true;
         } catch (Exception e) {
            e.getMessage();
         }
         return true;
     }  
  });
  </code></pre>