title: Why can't I access to assets folder from a simple java class?
body: <p>I have an Activity class with the name of FirstClass, and a simple Java class with the name of SecondClass.</p>
  
  <p>Inside of FirstActivity I want to create a new object of SecondClass like this:</p>
  
  <pre><code>SecondClass secondClass = new SecondClass();
  </code></pre>
  
  <p>Inside of the SecondClass, I intend to access the <code>Assets</code> folder and process a JSON file and then return the result by a method.</p>
  
  <pre><code>AssetManager assetManager = getResources().getAssets();
  InputStream stream = assetManager.open("myJson.json");
  </code></pre>
  
  <p>But I got an error, how can I resolve it?</p>