[android-developers] How to get the android Path string to a file on Assets folder?
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home