Hi guys, I am facing a problem here about using offline openstreetmap. I am using Mobile atlas creator to create osmdroid zip files used as offline map resources. I searched several articles about how to use this zip file. They all mentioned that we need to add this zip file (or unzipped one) to sd card manually. Well, I was wandering if I can do this from my code; let's say putting this zip file in assets folder or anywhere; and add it to user's handphone sd card later? Or just reference it from the code? So the users don't need to add it manually..They might be lazy to do so....Please kindly leave any suggestions you may have.....Thank you very much!! asked 14 May '12, 12:01 Kelsie |
Well guys, I found a way to do it. Put the zip file in assets folder in the program. When app starts, check if "osmdroid" directory exists under Environment.getExternalStorageDirectory().getPath(). If not, create the directory and copy the zip file to that folder! But you should seek users permission for doing so. answered 18 May '12, 01:58 Kelsie |