Which is the path to a file stored in drawable folder?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6301493/android-get-path-of-resource">Android - get path of resource</a>  </p>
</blockquote>



<p>I need to know the string path to a map file stored on drawable folder, because i'm using a map api that needs to receive a string path, and my maps must be stored drawable folder (assets folder can't be used for this because the maps are higher than 1MB)</p>

<p>This is the code i'm trying, but this code is incorrect because the map is not being displayed:</p>

<pre><code>        MapView mapView = new MapView(this);
        mapView.setClickable(true);
        mapView.setBuiltInZoomControls(true);
        String mapName="bremen";           
        String fileName = "android.resource://" + this.getPackageName() + "/drawable/"+mapName;
        //mapView.setMapFile("/sdcard/path/to/mapfile.map");
        mapView.setMapFile(fileName);             
        setContentView(mapView);
</code></pre>

<p>Which is the correct string path file to the file bremen.map stored on my drawable folder?</p>
