title: File, FileReader, BufferedReader return null on Android
body: <p>I'm using Java to program in Android where I have two clases: first is <code>MainActivity.java</code> and the second is <code>Tokenizer.java</code>. In <code>Tokenizer</code> I use File, FileReader and BufferedReader to read a txt file. In this class I use the next code:</p>
  
  <pre><code>package net.try.........;
  import java.io.File;
  import java.io.FileReader;
  import java.io.BufferedReader;
  import android.content.Context;
  
  public class Tokenizer {
      BufferedReader br;
      FileReader fr;
      File f;
  
      public void leerPath ( ) {      
  
      try {
          f = new File("F:path...../file.txt");
          fr = new FileReader(f);
          br = new BufferedReader(fr);
      } 
  
      catch (FileNotFoundException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();                
      }
  }
  </code></pre>
  
  <p>When debugging the MainActivity "f" those have the path where the file is FileReader then dysplay that f is null, and so br is also null. Why is the reason that, when using in Java the code works but Java/Android is there something misisng?</p>
  
  <p>this is the code in main activiti</p>
  
  <pre><code>public class MainActivity extends MapActivity {
  
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  Tokenizer ob1=new Tokenizer();
  ob1.leerPath();
  }
  }
  </code></pre>