title: Android: Remove item (ListView)
body: <p>I want to remove an item from <code>ListView</code>, but I don't know how can I do it.</p>
  
  <p>This is my code...</p>
  
  <pre><code>public void FLYNOTE_refresh() {
      int i;
      SharedPreferences Pref = getSharedPreferences("nnote", MODE_WORLD_READABLE); //созаётся файл настроек "nnote" и туда барыжиться вся хня
      key = Pref.getInt("number", 0); 
      key++;
      String lv_arr[] = new String[key];
  
      for (i = 0; i &lt; key; i++) {
           lv_arr[i] = Pref.getString("n" + i, "none");           
      }
  
      textView1.setText(String.valueOf(key));
  
      listView1.setAdapter(new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_list_item_1 , lv_arr));
      listView1.setTextFilterEnabled(true);
  }
  </code></pre>
  
  <p>I want to remove an item with <code>0 id</code>,guide me to do that.</p>