SlideShare a Scribd company logo
ANDROID MOBILE APPLICATION
ON GOOGLE MAPS
- Sutej Chakka
Objective:
• Main objective is about getting updates on our current
location using android application
• Pinpointing the location
• Getting the exact address along with the latitudes and
longitudes of the location
• Getting street view and satellite view of the
required location.
Obtaining Google maps API key:
To access the Google Maps servers with the
Maps API, you have to add a Maps API key to our
application. The key is free, you can use it with any of
our applications that call the Maps API.
Installing Google maps on our
application
• You obtain a Maps API key from the Google APIs
Console by providing your application's signing
certificate and its package name.
• Once you have the key, you add it to your application
by adding an element to your application's manifest
fileAndroidManifest.xml.
< com.google.android.maps.MapView
android:layout_width = "fill_parent"
android:layout_height= "fill_parent"
android:apiKey="0usa-
pB5DrxYwUz_6VusUTuqoYml5uOOjtLrQDA" />
Fingerprint:
E6:0C:01:2D:6A:92:60:4B:4B:5C:63:2E:BB:21:AD:58
Obtaining the fingerprint:
Keytool –list –alias –androiddebugkey –
keystore/C:UsersSutejContacts.androiddebug.keys
tore –storepass android –keypass android
Debug certificate: The Android SDK tools generate
this certificate automatically when you do a "debug"
build from the command line,
The certificate is only for use with an application that
you're testing; you can't publish an app that's signed
with a debug certificate.
You can generate an API key from this certificate, but
only use the key for testing, never for production.
Some of the important functions used in java file are:
SetContentView: This is the method used to connect
XML file to JAVA file.
FindViewById: This is the method used to access
button created in XML file in java file.
OnClickListener: to give action to the button.
INTENT: this is used to start another activity.
GeoPoint: A class representing a pair of latitude and
longitude, stored as integer numbers of microdegrees.
MapView: A View which displays a map (with data
obtained from the Google Maps service). It will capture
keypresses and touch gestures to pan and zoom the map.
It can also be controlled programmatically (getController
()) and can draw a number of Overlays on top of the map
(getOverlays ()).In order to display Google Maps data in a
MapView; you must register with the Google Maps service
and obtain a Maps API Key.
MyLocationOverlay: An Overlay for drawing the user's
current location (and accuracy) on the map.
MapController: A utility class to manage panning and
zooming of a map.
For Updating location:
Voidandroid.location.LocationManager.requestLocati
onUpdates (String provider, long minTime, float
minDistance, LocationListener listener)
PARAMETERS:
* provider: the name of the provider with
which to register
minTime: minimum time interval between location
updates, in milliseconds
minDistance: minimum distance between location
updates, in meters
Navigation of our application:
Press the map more than 3 sec we will see three
buttons
Place a pin point: it marks the current location
Toggle view: it changes street view to satellite view
and vice versa.
Get address: it shows the address of the current
location.
Permissions:
For our project we need to take several
permissions to make sure our application works fine.
<uses-permission
android:name="android.permission.INTERNET"/>
<uses-permission
android:name="android.permission.ACCESS_FINE_LOCATIO
N"/>
<uses-permission
android:name="android.permission.ACCESS_COARSE_LOCA
TION"/>
Running this application in normal AVD emulator
wont work we have to select the target device as
Google APIs.
Emulator used to run this application
Security:
Android applications run in a sandbox, an
isolated area of the system that does not have access to
the rest of the system's resources. The Android
Application Sandbox, which isolates your app data and
code execution from other apps.
Release certificate: The Android SDK tools generate
this certificate when you do a "release" build with
either any program or Eclipse.
This certificate can be used with an app you release to
the world.
Thank You 

More Related Content

Viewers also liked

MAP FOR ANDROID APPS(MFAA):AMITOZ SINGH
MAP FOR ANDROID APPS(MFAA):AMITOZ SINGHMAP FOR ANDROID APPS(MFAA):AMITOZ SINGH
MAP FOR ANDROID APPS(MFAA):AMITOZ SINGH
MAP FOR ANDROID APPS AMITOZ SINGH
 
GDG Varna - When Android Meets Maps
GDG Varna - When Android Meets MapsGDG Varna - When Android Meets Maps
GDG Varna - When Android Meets Maps
Dimitar Danailov
 
[Android] Google Service Play & Google Maps
[Android] Google Service Play & Google Maps[Android] Google Service Play & Google Maps
[Android] Google Service Play & Google Maps
Natã Melo
 
FYP Presentation On Android based Google Map Application
FYP Presentation On Android based Google Map ApplicationFYP Presentation On Android based Google Map Application
FYP Presentation On Android based Google Map Application
Muzamil Hussain
 
Android location services from social networks to games
Android location services from social networks to gamesAndroid location services from social networks to games
Android location services from social networks to games
Don Park
 
Google Location Services
Google Location ServicesGoogle Location Services
Google Location Services
Vishal Sapariya
 
Android MapView and MapActivity
Android MapView and MapActivityAndroid MapView and MapActivity
Android MapView and MapActivity
Ahsanul Karim
 
Google Maps API for Android
Google Maps API for AndroidGoogle Maps API for Android
Google Maps API for Android
Maksim Golivkin
 
Google Maps Presentation
Google Maps PresentationGoogle Maps Presentation
Google Maps Presentation
David Kamerer
 

Viewers also liked (9)

MAP FOR ANDROID APPS(MFAA):AMITOZ SINGH
MAP FOR ANDROID APPS(MFAA):AMITOZ SINGHMAP FOR ANDROID APPS(MFAA):AMITOZ SINGH
MAP FOR ANDROID APPS(MFAA):AMITOZ SINGH
 
GDG Varna - When Android Meets Maps
GDG Varna - When Android Meets MapsGDG Varna - When Android Meets Maps
GDG Varna - When Android Meets Maps
 
[Android] Google Service Play & Google Maps
[Android] Google Service Play & Google Maps[Android] Google Service Play & Google Maps
[Android] Google Service Play & Google Maps
 
FYP Presentation On Android based Google Map Application
FYP Presentation On Android based Google Map ApplicationFYP Presentation On Android based Google Map Application
FYP Presentation On Android based Google Map Application
 
Android location services from social networks to games
Android location services from social networks to gamesAndroid location services from social networks to games
Android location services from social networks to games
 
Google Location Services
Google Location ServicesGoogle Location Services
Google Location Services
 
Android MapView and MapActivity
Android MapView and MapActivityAndroid MapView and MapActivity
Android MapView and MapActivity
 
Google Maps API for Android
Google Maps API for AndroidGoogle Maps API for Android
Google Maps API for Android
 
Google Maps Presentation
Google Maps PresentationGoogle Maps Presentation
Google Maps Presentation
 

Similar to Android mobile application for gps

MAD Unit 6.pptx
MAD Unit 6.pptxMAD Unit 6.pptx
MAD Unit 6.pptx
34ShreyaChauhan
 
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
IJERD Editor
 
Maps in android
Maps in androidMaps in android
Maps in android
Sumita Das
 
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
 
Visualize Your Data
Visualize Your DataVisualize Your Data
Visualize Your Data
Kyung Yoo
 
Intro To Google Maps
Intro To Google MapsIntro To Google Maps
Intro To Google Maps
Eric ShangKuan
 
Android location based services
Android location based servicesAndroid location based services
Android location based services
aswath babu
 
Create Location Sharing apps using the Ionic framework
Create Location Sharing apps using the Ionic framework					Create Location Sharing apps using the Ionic framework
Create Location Sharing apps using the Ionic framework
Shelly Megan
 
Location based services 10
Location based services   10Location based services   10
Location based services 10
Michael Shrove
 
HERE Maps for the Nokia X platform
HERE Maps for the Nokia X platformHERE Maps for the Nokia X platform
HERE Maps for the Nokia X platform
Microsoft Mobile Developer
 
Location based services
Location based servicesLocation based services
Location based services
BRILLMINDZ TECHNOLOGIES
 
Maps API on_mobile_dev_festbangkok
Maps API on_mobile_dev_festbangkokMaps API on_mobile_dev_festbangkok
Maps API on_mobile_dev_festbangkok
ss318
 
Android location
Android locationAndroid location
Android location
Krazy Koder
 
Html5 geolocation api
Html5 geolocation apiHtml5 geolocation api
Must Know Google Map Features for your Web application
Must Know Google Map Features  for your Web applicationMust Know Google Map Features  for your Web application
Must Know Google Map Features for your Web application
Appsbee
 
[Android] Maps, Geocoding and Location-Based Services
[Android] Maps, Geocoding and Location-Based Services[Android] Maps, Geocoding and Location-Based Services
[Android] Maps, Geocoding and Location-Based Services
Nikmesoft Ltd
 
Android chapter25-map views
Android chapter25-map viewsAndroid chapter25-map views
Android chapter25-map views
Tran Le Hoan
 
Location Based Services Android Google Maps API with Examples
Location Based Services Android Google Maps API with ExamplesLocation Based Services Android Google Maps API with Examples
Location Based Services Android Google Maps API with Examples
Chandrakant Divate
 
Android Rally: Google Maps with LBS
Android Rally: Google Maps with LBSAndroid Rally: Google Maps with LBS
Android Rally: Google Maps with LBS
sumitra22
 
How to use geolocation in react native apps
How to use geolocation in react native appsHow to use geolocation in react native apps
How to use geolocation in react native apps
InnovationM
 

Similar to Android mobile application for gps (20)

MAD Unit 6.pptx
MAD Unit 6.pptxMAD Unit 6.pptx
MAD Unit 6.pptx
 
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
 
Maps in android
Maps in androidMaps in android
Maps in android
 
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
 
Visualize Your Data
Visualize Your DataVisualize Your Data
Visualize Your Data
 
Intro To Google Maps
Intro To Google MapsIntro To Google Maps
Intro To Google Maps
 
Android location based services
Android location based servicesAndroid location based services
Android location based services
 
Create Location Sharing apps using the Ionic framework
Create Location Sharing apps using the Ionic framework					Create Location Sharing apps using the Ionic framework
Create Location Sharing apps using the Ionic framework
 
Location based services 10
Location based services   10Location based services   10
Location based services 10
 
HERE Maps for the Nokia X platform
HERE Maps for the Nokia X platformHERE Maps for the Nokia X platform
HERE Maps for the Nokia X platform
 
Location based services
Location based servicesLocation based services
Location based services
 
Maps API on_mobile_dev_festbangkok
Maps API on_mobile_dev_festbangkokMaps API on_mobile_dev_festbangkok
Maps API on_mobile_dev_festbangkok
 
Android location
Android locationAndroid location
Android location
 
Html5 geolocation api
Html5 geolocation apiHtml5 geolocation api
Html5 geolocation api
 
Must Know Google Map Features for your Web application
Must Know Google Map Features  for your Web applicationMust Know Google Map Features  for your Web application
Must Know Google Map Features for your Web application
 
[Android] Maps, Geocoding and Location-Based Services
[Android] Maps, Geocoding and Location-Based Services[Android] Maps, Geocoding and Location-Based Services
[Android] Maps, Geocoding and Location-Based Services
 
Android chapter25-map views
Android chapter25-map viewsAndroid chapter25-map views
Android chapter25-map views
 
Location Based Services Android Google Maps API with Examples
Location Based Services Android Google Maps API with ExamplesLocation Based Services Android Google Maps API with Examples
Location Based Services Android Google Maps API with Examples
 
Android Rally: Google Maps with LBS
Android Rally: Google Maps with LBSAndroid Rally: Google Maps with LBS
Android Rally: Google Maps with LBS
 
How to use geolocation in react native apps
How to use geolocation in react native appsHow to use geolocation in react native apps
How to use geolocation in react native apps
 

Recently uploaded

Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
Mariano Tinti
 

Recently uploaded (20)

Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
 

Android mobile application for gps

  • 1. ANDROID MOBILE APPLICATION ON GOOGLE MAPS - Sutej Chakka
  • 2. Objective: • Main objective is about getting updates on our current location using android application • Pinpointing the location • Getting the exact address along with the latitudes and longitudes of the location • Getting street view and satellite view of the required location.
  • 3. Obtaining Google maps API key: To access the Google Maps servers with the Maps API, you have to add a Maps API key to our application. The key is free, you can use it with any of our applications that call the Maps API. Installing Google maps on our application
  • 4. • You obtain a Maps API key from the Google APIs Console by providing your application's signing certificate and its package name. • Once you have the key, you add it to your application by adding an element to your application's manifest fileAndroidManifest.xml.
  • 5. < com.google.android.maps.MapView android:layout_width = "fill_parent" android:layout_height= "fill_parent" android:apiKey="0usa- pB5DrxYwUz_6VusUTuqoYml5uOOjtLrQDA" /> Fingerprint: E6:0C:01:2D:6A:92:60:4B:4B:5C:63:2E:BB:21:AD:58
  • 6. Obtaining the fingerprint: Keytool –list –alias –androiddebugkey – keystore/C:UsersSutejContacts.androiddebug.keys tore –storepass android –keypass android
  • 7. Debug certificate: The Android SDK tools generate this certificate automatically when you do a "debug" build from the command line, The certificate is only for use with an application that you're testing; you can't publish an app that's signed with a debug certificate. You can generate an API key from this certificate, but only use the key for testing, never for production.
  • 8. Some of the important functions used in java file are: SetContentView: This is the method used to connect XML file to JAVA file. FindViewById: This is the method used to access button created in XML file in java file. OnClickListener: to give action to the button. INTENT: this is used to start another activity.
  • 9. GeoPoint: A class representing a pair of latitude and longitude, stored as integer numbers of microdegrees. MapView: A View which displays a map (with data obtained from the Google Maps service). It will capture keypresses and touch gestures to pan and zoom the map. It can also be controlled programmatically (getController ()) and can draw a number of Overlays on top of the map (getOverlays ()).In order to display Google Maps data in a MapView; you must register with the Google Maps service and obtain a Maps API Key.
  • 10. MyLocationOverlay: An Overlay for drawing the user's current location (and accuracy) on the map. MapController: A utility class to manage panning and zooming of a map.
  • 11. For Updating location: Voidandroid.location.LocationManager.requestLocati onUpdates (String provider, long minTime, float minDistance, LocationListener listener)
  • 12. PARAMETERS: * provider: the name of the provider with which to register minTime: minimum time interval between location updates, in milliseconds minDistance: minimum distance between location updates, in meters
  • 13. Navigation of our application: Press the map more than 3 sec we will see three buttons Place a pin point: it marks the current location Toggle view: it changes street view to satellite view and vice versa. Get address: it shows the address of the current location.
  • 14.
  • 15.
  • 16.
  • 17. Permissions: For our project we need to take several permissions to make sure our application works fine. <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATIO N"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCA TION"/>
  • 18. Running this application in normal AVD emulator wont work we have to select the target device as Google APIs. Emulator used to run this application
  • 19. Security: Android applications run in a sandbox, an isolated area of the system that does not have access to the rest of the system's resources. The Android Application Sandbox, which isolates your app data and code execution from other apps.
  • 20. Release certificate: The Android SDK tools generate this certificate when you do a "release" build with either any program or Eclipse. This certificate can be used with an app you release to the world.