NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the 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

Kelsie
11112
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

Kelsie
11112
accept rate: 0%

Follow this question

By Email:

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

By RSS:

Answers

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:

×535
×362
×341
×106
×13

question asked: 14 May '12, 12:01

question was seen: 8,243 times

last updated: 18 May '12, 01:58

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum