Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using offline map and online map

 
fahimeh hashemian
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I want to use map in my application. Now i want to know everything about map in android. I mean, full of ways for using offline map and online map. what are ways for using offline map?(like OSMDroid or google map and ...) . when i use offline map, i have not an internet connection? even for first? so how can it works? how can this find my location and my search location? Do i should save map in my SD card?

before i used map in a small app with google api, in this way i must to have internet, but now i searched in internet, i find that way is deprecated and now i should use Google play services!

anyway, i want to know about map and how can i use this.

I googled but i can't find a good answer for my questions... some people say, can't use online google map and another say, can catch some particular destination and in some sites say, can use offline map! I am confused if you have a link or tutorial, please send for me .

Thanks for advice
Cheers
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not familiar with OSMDroid, but MapDroyd -another map app based on OSM data- works entirely offline after it has initially downloaded the maps. Google Maps lets you download small areas (I think no larger than 10x10km or so) for offline use. But yes, at least initially you need online connectivity to download the maps.

Using Google's maps in your app does indeed require you to sign up for a Google account so that you can get a key, and it does need the Google Play Services library (which you can obtain like other Google libraries through the SDK tools). It comes with numerous example apps with full source code. That's all described in detail in http://developer.android.com/google/play-services/maps.html (which you also have locally on your machine if you've downloaded the Android SDK).
 
fahimeh hashemian
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply.You mean when i use OSMDroid or MapDroyd, i should connect to internet for first time and download map? when i use these, Can i zoom to map and search each point in map? I mean in first connection, app download full map of world?

If you have a simple tutorial for using offline map and description about this, please give me

again Thanks
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mean when i use OSMDroid or MapDroyd, i should connect to internet for first time and download map? when i use these, Can i zoom to map and search each point in map? I mean in first connection, app download full map of world?

I don't know what OSMDroid does. MapDroyd lets you pick which maps to download. The app is free , so you can simply install it and see how it works. Its Play Store page also has information on what it can do.
 
fahimeh hashemian
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And can i use MapDroyd in my app? like google maps? I use this, like this is a part of my program .
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MapDroyd is an app, not a library. But you may want to check out http://code.google.com/p/osmdroid/wiki/HowToUseJar, which I found by searching for "using osm maps in android app" (in case you want to find related stuff yourself).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic