SlideShare a Scribd company logo
1 of 23
Android Programming




         Lesson 8
 Maps, Geocoding and
Location-Based Services
       NGUYEN The Linh
Android Programming


Contents


      1    Location-Based Services

      2    Gecoding

      3    Maps


      4    Exercise 8




                         2
Android Programming


Maps, Geocoding and LBS




         Location-Based Services




                   3
Android Programming


Using Location-Based Services

 Location-based services (LBS) is an umbrella term
  used to describe the different technologies used to
  find the device’s current location. The two main LBS
  elements are:
    LocationManager: Provides hooks to the location-based services.
    LocationProviders: Each of which represents a different location
     finding technology used to determine the device’s current location.




                                  4
Android Programming


Setting up the Emulator with Test Providers

 Location-based services are dependant on device
  hardware for finding the current location. When
  developing and testing with the emulator, your
  hardware is virtualized, and you’re likely to stay in
  pretty much the same location.

 Use the Location Controls available from the DDMS
  perspective in Eclipse to push location changes
  directly into the test GPS_PROVIDER.



                            5
Android Programming


Setting up the Emulator with Test Providers




                     6
Android Programming


Selecting a Location Provider

 Depending on the device, there may be several
  technologies that Android can use to determine the
  current location. Each technology, or Location
  Provider, will offer different capabilities including
  power consumption, monetary cost, accuracy, and the
  ability to determine altitude, speed, or heading
  information.




                          7
Android Programming


Finding the Available Providers

 The LocationManager class includes static string
  constants that return the provider name for the two
  most common Location Providers:
    LocationManager.GPS_PROVIDER
    LocationManager.NETWORK_PROVIDER
 To get a list of names for all the providers available on
  the device, call getProviders, using a Boolean to
  indicate if you want all, or only the enabled, providers
  to be returned:



                            8
Android Programming


Finding Providers Based on Criteria

 In most scenarios, it’s unlikely that you will want to
  explicitly choose the Location Provider to use. More
  commonly, you’ll specify the requirements that a
  provider must meet and let Android determine the
  best technology to use.

 Use the Criteria class to dictate the requirements of a
  provider in terms of accuracy (fine or coarse), power
  use (low, medium, high), cost, and the ability to
  return values for altitude, speed.


                            9
Android Programming


Finding Providers Based on Criteria




                     10
Android Programming


Finding Your Location

 Before you can use the Location Manager, you need
  to add one or more uses-permission tags to your
  manifest to support access to the LBS hardware.



 You can find the last location fix determined by a
  particular Location Provider using the
  getLastKnownLocation method




                           11
Android Programming


Maps, Geocoding and LBS




               Geocoding




                   12
Android Programming


Reverse Geocoding




                    13
Android Programming


Forward Geocoding

 Forward geocoding (or just geocoding) determines
  map coordinates for a given location.
 To do a forward-geocoding lookup, call
  getFromLocationName on a Geocoder instance. Pass in
  the location you want the coordinates for and the
  maximum number of results to return, as shown in the
  snippet below:




                         14
Android Programming


Maps, Geocoding and LBS




                  Maps




                   15
Android Programming


Introducing MapView and MapActivity

 MapView is the actual Map View (control).
 MapActivity is the base class you extend to create a
  new Activity that can include a Map View. The
  MapActivity class handles the application life cycle
  and background service management required for
  displaying maps. As a result, you can only use a
  MapView within MapActivity-derived Activities.
 Overlay is the class used to annotate your maps. Using
  Overlays, you can use a Canvas to draw onto any
  number of layers that are displayed on top of a Map
  View.

                          16
Android Programming


Introducing MapView and MapActivity

 MapController is used to control the map, allowing you
  to set the center location and zoom levels.

 MyLocationOverlay is a special overlay that can be
  used to display the current position and orientation of
  the device.

 ItemizedOverlays and OverlayItems are used together
  to let you create a layer of map markers, displayed
  using drawable with associated text.

                           17
Android Programming


Creating a Map-Based Activity

 The Android map library is not a standard package; as
  an optional API, it must be explicitly included in the
  application manifest before it can be used. Add the
  library to your manifest using a uses-library tag
  within the application node, as shown in the XML
  snippet below:




                          18
Android Programming


Creating a Map-Based Activity

 Google Maps downloads the map tiles on demand; as a
  result, it implicitly requires permission to use the
  Internet. To see map tiles in your Map View, you need
  to add a uses-permission tag to your application
  manifest for android.permission.INTERNET, as shown
  below:




                         19
Android Programming


Creating a Map-Based Activity




                    20
Android Programming


Creating a Map-Based Activity




                    21
Android Programming


Exercise 8




             22
Android Programming

More Related Content

What's hot

Mobile App Development
Mobile App DevelopmentMobile App Development
Mobile App Development
Chris Morrell
 
Android ui dialog
Android ui dialogAndroid ui dialog
Android ui dialog
Krazy Koder
 
Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)
Ahsanul Karim
 
Android Telephony Manager and SMS
Android Telephony Manager and SMSAndroid Telephony Manager and SMS
Android Telephony Manager and SMS
Jussi Pohjolainen
 

What's hot (20)

Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Mobile App Development
Mobile App DevelopmentMobile App Development
Mobile App Development
 
Hybrid mobile app
Hybrid mobile appHybrid mobile app
Hybrid mobile app
 
Flutter workshop
Flutter workshopFlutter workshop
Flutter workshop
 
Giving MongoDB a Way to Play with the GIS Community
Giving MongoDB a Way to Play with the GIS CommunityGiving MongoDB a Way to Play with the GIS Community
Giving MongoDB a Way to Play with the GIS Community
 
Introduction to flutter
Introduction to flutter Introduction to flutter
Introduction to flutter
 
Maps in android
Maps in androidMaps in android
Maps in android
 
Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android Development
 
Android Mp3 Player
Android Mp3 PlayerAndroid Mp3 Player
Android Mp3 Player
 
Android - Application Framework
Android - Application FrameworkAndroid - Application Framework
Android - Application Framework
 
Google Maps in Android
Google Maps in AndroidGoogle Maps in Android
Google Maps in Android
 
Jetpack Compose beginner.pdf
Jetpack Compose beginner.pdfJetpack Compose beginner.pdf
Jetpack Compose beginner.pdf
 
Android ui dialog
Android ui dialogAndroid ui dialog
Android ui dialog
 
Android: Intent, Intent Filter, Broadcast Receivers
Android: Intent, Intent Filter, Broadcast ReceiversAndroid: Intent, Intent Filter, Broadcast Receivers
Android: Intent, Intent Filter, Broadcast Receivers
 
Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)
 
Android Telephony Manager and SMS
Android Telephony Manager and SMSAndroid Telephony Manager and SMS
Android Telephony Manager and SMS
 
Shared preferences
Shared preferencesShared preferences
Shared preferences
 
Android User Interface
Android User InterfaceAndroid User Interface
Android User Interface
 
Top 11 Mobile App Development Frameworks
Top 11 Mobile App Development FrameworksTop 11 Mobile App Development Frameworks
Top 11 Mobile App Development Frameworks
 
Android - Android Intent Types
Android - Android Intent TypesAndroid - Android Intent Types
Android - Android Intent Types
 

Similar to [Android] Maps, Geocoding and Location-Based Services

Mobile Application Development-Lecture 15 & 16.pdf
Mobile Application Development-Lecture 15 & 16.pdfMobile Application Development-Lecture 15 & 16.pdf
Mobile Application Development-Lecture 15 & 16.pdf
AbdullahMunir32
 
Android App Development 04 : Location API
Android App Development 04 : Location APIAndroid App Development 04 : Location API
Android App Development 04 : Location API
Anuchit Chalothorn
 
Location based services 10
Location based services   10Location based services   10
Location based services 10
Michael Shrove
 
Land vehicle tracking system using java on android platform
Land vehicle tracking system using java on android platformLand vehicle tracking system using java on android platform
Land vehicle tracking system using java on android platform
Alexander Decker
 
Maps API on_mobile_dev_festbangkok
Maps API on_mobile_dev_festbangkokMaps API on_mobile_dev_festbangkok
Maps API on_mobile_dev_festbangkok
ss318
 
Matchinguu droidcon presentation
Matchinguu droidcon presentationMatchinguu droidcon presentation
Matchinguu droidcon presentation
Droidcon Berlin
 

Similar to [Android] Maps, Geocoding and Location-Based Services (20)

Mobile Application Development-Lecture 15 & 16.pdf
Mobile Application Development-Lecture 15 & 16.pdfMobile Application Development-Lecture 15 & 16.pdf
Mobile Application Development-Lecture 15 & 16.pdf
 
Android App Development 04 : Location API
Android App Development 04 : Location APIAndroid App Development 04 : Location API
Android App Development 04 : Location API
 
Location based services
Location based servicesLocation based services
Location based services
 
Location based services 10
Location based services   10Location based services   10
Location based services 10
 
Android Rally: Google Maps with LBS
Android Rally: Google Maps with LBSAndroid Rally: Google Maps with LBS
Android Rally: Google Maps with LBS
 
MAD Unit 6.pptx
MAD Unit 6.pptxMAD Unit 6.pptx
MAD Unit 6.pptx
 
All about android
All about androidAll about android
All about android
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
 
Android the future
Android  the futureAndroid  the future
Android the future
 
Land vehicle tracking system using java on android platform
Land vehicle tracking system using java on android platformLand vehicle tracking system using java on android platform
Land vehicle tracking system using java on android platform
 
google platform.pptx
google platform.pptxgoogle platform.pptx
google platform.pptx
 
Android application for gps
Android application for gpsAndroid application for gps
Android application for gps
 
Geo location based augmented reality application
Geo location based augmented reality applicationGeo location based augmented reality application
Geo location based augmented reality application
 
THE DESIGN IN MOBILE AND WEB PLATFORM OF THE LOCATION IDENTIFICATION APPLICAT...
THE DESIGN IN MOBILE AND WEB PLATFORM OF THE LOCATION IDENTIFICATION APPLICAT...THE DESIGN IN MOBILE AND WEB PLATFORM OF THE LOCATION IDENTIFICATION APPLICAT...
THE DESIGN IN MOBILE AND WEB PLATFORM OF THE LOCATION IDENTIFICATION APPLICAT...
 
Maps API on_mobile_dev_festbangkok
Maps API on_mobile_dev_festbangkokMaps API on_mobile_dev_festbangkok
Maps API on_mobile_dev_festbangkok
 
Jaipur Bus Finder - An Android-based Application
Jaipur Bus Finder - An Android-based ApplicationJaipur Bus Finder - An Android-based Application
Jaipur Bus Finder - An Android-based Application
 
Jaipur Bus Finder - An Android-based Application
Jaipur Bus Finder - An Android-based ApplicationJaipur Bus Finder - An Android-based Application
Jaipur Bus Finder - An Android-based Application
 
Android app developers in bangalore- thorsignia
Android app developers in bangalore- thorsigniaAndroid app developers in bangalore- thorsignia
Android app developers in bangalore- thorsignia
 
Matchinguu droidcon presentation
Matchinguu droidcon presentationMatchinguu droidcon presentation
Matchinguu droidcon presentation
 
ARmedia SDK: new Features and Capabilities
ARmedia SDK: new Features and CapabilitiesARmedia SDK: new Features and Capabilities
ARmedia SDK: new Features and Capabilities
 

More from Nikmesoft Ltd

More from Nikmesoft Ltd (18)

[iOS] Networking
[iOS] Networking[iOS] Networking
[iOS] Networking
 
[iOS] Data Storage
[iOS] Data Storage[iOS] Data Storage
[iOS] Data Storage
 
[iOS] Multiple Background Threads
[iOS] Multiple Background Threads[iOS] Multiple Background Threads
[iOS] Multiple Background Threads
 
[iOS] Navigation
[iOS] Navigation[iOS] Navigation
[iOS] Navigation
 
[iOS] Basic UI Elements
[iOS] Basic UI Elements[iOS] Basic UI Elements
[iOS] Basic UI Elements
 
[iOS] Introduction to iOS Programming
[iOS] Introduction to iOS Programming[iOS] Introduction to iOS Programming
[iOS] Introduction to iOS Programming
 
[Android] Multimedia Programming
[Android] Multimedia Programming[Android] Multimedia Programming
[Android] Multimedia Programming
 
[Android] Android Animation
[Android] Android Animation[Android] Android Animation
[Android] Android Animation
 
[Android] 2D Graphics
[Android] 2D Graphics[Android] 2D Graphics
[Android] 2D Graphics
 
[Android] Services and Broadcast Receivers
[Android] Services and Broadcast Receivers[Android] Services and Broadcast Receivers
[Android] Services and Broadcast Receivers
 
[Android] Web services
[Android] Web services[Android] Web services
[Android] Web services
 
[Android] Multiple Background Threads
[Android] Multiple Background Threads[Android] Multiple Background Threads
[Android] Multiple Background Threads
 
[Android] Data Storage
[Android] Data Storage[Android] Data Storage
[Android] Data Storage
 
[Android] Intent and Activity
[Android] Intent and Activity[Android] Intent and Activity
[Android] Intent and Activity
 
[Android] Widget Event Handling
[Android] Widget Event Handling[Android] Widget Event Handling
[Android] Widget Event Handling
 
[Android] Using Selection Widgets
[Android] Using Selection Widgets[Android] Using Selection Widgets
[Android] Using Selection Widgets
 
[Android] Basic Widgets and Containers
[Android] Basic Widgets and Containers[Android] Basic Widgets and Containers
[Android] Basic Widgets and Containers
 
[Android] Introduction to Android Programming
[Android] Introduction to Android Programming[Android] Introduction to Android Programming
[Android] Introduction to Android Programming
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Recently uploaded (20)

Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 

[Android] Maps, Geocoding and Location-Based Services

  • 1. Android Programming Lesson 8 Maps, Geocoding and Location-Based Services NGUYEN The Linh
  • 2. Android Programming Contents 1 Location-Based Services 2 Gecoding 3 Maps 4 Exercise 8 2
  • 3. Android Programming Maps, Geocoding and LBS Location-Based Services 3
  • 4. Android Programming Using Location-Based Services  Location-based services (LBS) is an umbrella term used to describe the different technologies used to find the device’s current location. The two main LBS elements are:  LocationManager: Provides hooks to the location-based services.  LocationProviders: Each of which represents a different location finding technology used to determine the device’s current location. 4
  • 5. Android Programming Setting up the Emulator with Test Providers  Location-based services are dependant on device hardware for finding the current location. When developing and testing with the emulator, your hardware is virtualized, and you’re likely to stay in pretty much the same location.  Use the Location Controls available from the DDMS perspective in Eclipse to push location changes directly into the test GPS_PROVIDER. 5
  • 6. Android Programming Setting up the Emulator with Test Providers 6
  • 7. Android Programming Selecting a Location Provider  Depending on the device, there may be several technologies that Android can use to determine the current location. Each technology, or Location Provider, will offer different capabilities including power consumption, monetary cost, accuracy, and the ability to determine altitude, speed, or heading information. 7
  • 8. Android Programming Finding the Available Providers  The LocationManager class includes static string constants that return the provider name for the two most common Location Providers:  LocationManager.GPS_PROVIDER  LocationManager.NETWORK_PROVIDER  To get a list of names for all the providers available on the device, call getProviders, using a Boolean to indicate if you want all, or only the enabled, providers to be returned: 8
  • 9. Android Programming Finding Providers Based on Criteria  In most scenarios, it’s unlikely that you will want to explicitly choose the Location Provider to use. More commonly, you’ll specify the requirements that a provider must meet and let Android determine the best technology to use.  Use the Criteria class to dictate the requirements of a provider in terms of accuracy (fine or coarse), power use (low, medium, high), cost, and the ability to return values for altitude, speed. 9
  • 11. Android Programming Finding Your Location  Before you can use the Location Manager, you need to add one or more uses-permission tags to your manifest to support access to the LBS hardware.  You can find the last location fix determined by a particular Location Provider using the getLastKnownLocation method 11
  • 12. Android Programming Maps, Geocoding and LBS Geocoding 12
  • 14. Android Programming Forward Geocoding  Forward geocoding (or just geocoding) determines map coordinates for a given location.  To do a forward-geocoding lookup, call getFromLocationName on a Geocoder instance. Pass in the location you want the coordinates for and the maximum number of results to return, as shown in the snippet below: 14
  • 16. Android Programming Introducing MapView and MapActivity  MapView is the actual Map View (control).  MapActivity is the base class you extend to create a new Activity that can include a Map View. The MapActivity class handles the application life cycle and background service management required for displaying maps. As a result, you can only use a MapView within MapActivity-derived Activities.  Overlay is the class used to annotate your maps. Using Overlays, you can use a Canvas to draw onto any number of layers that are displayed on top of a Map View. 16
  • 17. Android Programming Introducing MapView and MapActivity  MapController is used to control the map, allowing you to set the center location and zoom levels.  MyLocationOverlay is a special overlay that can be used to display the current position and orientation of the device.  ItemizedOverlays and OverlayItems are used together to let you create a layer of map markers, displayed using drawable with associated text. 17
  • 18. Android Programming Creating a Map-Based Activity  The Android map library is not a standard package; as an optional API, it must be explicitly included in the application manifest before it can be used. Add the library to your manifest using a uses-library tag within the application node, as shown in the XML snippet below: 18
  • 19. Android Programming Creating a Map-Based Activity  Google Maps downloads the map tiles on demand; as a result, it implicitly requires permission to use the Internet. To see map tiles in your Map View, you need to add a uses-permission tag to your application manifest for android.permission.INTERNET, as shown below: 19
  • 20. Android Programming Creating a Map-Based Activity 20
  • 21. Android Programming Creating a Map-Based Activity 21