title: How to get the android Path string to a file on Assets folder?
body: <p>I need to know the <strong>string path</strong> to a file on assets folder, because I'm using a map API that needs to receive a string path, and my maps must be stored on assets folder</p>
  
  <p>This is the code i'm trying:</p>
  
  <pre><code>    MapView mapView = new MapView(this);
      mapView.setClickable(true);
      mapView.setBuiltInZoomControls(true);
      mapView.setMapFile("file:///android_asset/m1.map");
      setContentView(mapView);
  </code></pre>
  
  <p>Something is going wrong with <code>"file:///android_asset/m1.map"</code> because the map is not being loaded.</p>
  
  <p>Which is the correct string path file to the file <em>m1.map</em> stored on my assets folder?</p>
  
  <p>Thanks</p>
  
  <p>EDIT for Dimitru: This code doesn't works, it fails on <code>is.read(buffer);</code> with <em>IOException</em></p>
  
  <pre><code>        try {
              InputStream is = getAssets().open("m1.map");
              int size = is.available();
              byte[] buffer = new byte[size];
              is.read(buffer);
              is.close();
              text = new String(buffer);
          } catch (IOException e) {throw new RuntimeException(e);}
  </code></pre>