Why not ask your question on the new OpenStreetMap Community Forum?

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's gravatar image

accept rate: 0%

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.

permanent link

answered 18 May '12, 01:58

Kelsie's gravatar image

accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 14 May '12, 12:01

question was seen: 7,649 times

last updated: 18 May '12, 01:58

powered by OSQA