I think you can use
http://developer.android.com/reference/android/content/res/AssetManager.html#openFd(java.lang.String)and
then use
http://developer.android.com/reference/android/content/res/AssetFileDescriptor.html#getFileDescriptor()to
get the data.

Thanks

On Mon, Dec 12, 2011 at 6:46 PM, saex <[email protected]> wrote:

> Hi
>
> I need to know the string path 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
>
> This is the code i'm trying:
>
>    MapView mapView = new MapView(this);
>    mapView.setClickable(true);
>    mapView.setBuiltInZoomControls(true);
>    mapView.setMapFile("file:///android_asset/m1.map");
>    setContentView(mapView);
>
> Something is going wrong with "file:///android_asset/m1.map" because
> the map is not being loaded.
>
> Wich is the correct string path file to the file m1.map stored on my
> assets folder?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to