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