title: Reading JSON file into Android Application
body: <p>I have a JSON file with some contacts inside of it and need to create objects out of those contacts to display in a ListView. My problem appears to be accessing the contacts.json file. I don't understand where it should be put so the program can find it. I keep getting a FileNotFoundException. Does anyone know where I should put this file and how I would access it from that location? My current code looks like this:</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      ArrayList&lt;contact&gt; contacts = new ArrayList&lt;contact&gt;();
  
      String Root_Dir = Environment.getExternalStorageDirectory().getAbsolutePath();
      File file = new File(Root_Dir+"/contacts.json");
      String s = "";
      try {
  
          Log.d("contact", "1");
          Scanner in = new Scanner(file);
          StringBuilder sb = new StringBuilder();
  </code></pre>
  
  <p>contacts.json is currently sitting in the assets folder. Obviously, the way I'm looking for it isn't finding it properly.</p>