title: Saving to SD card and displaying on ListView
body: <p>So I'm trying to have a TextInput from a EditText to save whats written there with a button (save) to save into the SD card and also be displayed on the ListView. Just doesn't work, do not get any errors.</p>
  
  <p><strong>The Code I Use: (Sorry that its a lot)</strong></p>
  
  <pre><code>@Override
  public void onClick(View v) {
      // TODO Auto-generated method stub
  
  findViewById(R.id.save).setOnClickListener( new View.OnClickListener() {
      @Override
      public void onClick(View v) {
  
      }
  });
  
  
  try{   
  String TextInput = mTextInput.getText().toString();
  if(!TextInput.trim().equals("")){
      File file =new File("/sdcard/Accelerometer.html");
  
      if(!file.exists()){
          file.createNewFile();
      }
  
      FileWriter fileWritter = new FileWriter(file.getName(),true);
          BufferedWriter bufferWritter = new BufferedWriter(fileWritter);
          bufferWritter.write(TextInput);
          bufferWritter.close();
  } 
  }catch (IOException e) {
  
      e.printStackTrace(); }
  
      }
  
  public void onCreate() {
  
      ListView lv;
      ArrayList&lt;String&gt; FilesInFolder = GetFiles("/sdcard/Accelerometer.html");
      lv = (ListView)findViewById(R.id.textOutput);
  
      lv.setAdapter(new ArrayAdapter&lt;String&gt;(this,
          android.R.layout.simple_list_item_1, FilesInFolder));
  
      lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {
      public void onItemClick(AdapterView&lt;?&gt; parent, View v, int position, long id) {
              // Clicking on items
           }
      });
  }
  private ArrayList&lt;String&gt; GetFiles(String string) {
      // TODO Auto-generated method stub
      return null;
  }
  
  public boolean isExternalStorageWritable() {
      String state = Environment.getExternalStorageState();
      if (Environment.MEDIA_MOUNTED.equals(state)) {
          return true;
      }
      return false;
      }
  }
  </code></pre>
  
  <p>Any thought how to make this work?</p>