SlideShare une entreprise Scribd logo
1  sur  21
ANDROID MOBILE APPLICATION
ON GOOGLE MAPS
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 

Contenu connexe

En vedette

Google Maps Presentation
Google Maps PresentationGoogle Maps Presentation
Google Maps PresentationDavid Kamerer
 
Democratisation de la Geolocalisation
Democratisation de la GeolocalisationDemocratisation de la Geolocalisation
Democratisation de la Geolocalisationladetto
 
Géolocalisation de données et conception de cartes interactives
Géolocalisation de données et conception de cartes interactivesGéolocalisation de données et conception de cartes interactives
Géolocalisation de données et conception de cartes interactivesPhilippe Gambette
 
[Android] Google Service Play & Google Maps
[Android] Google Service Play & Google Maps[Android] Google Service Play & Google Maps
[Android] Google Service Play & Google MapsNatã Melo
 
Android Training (Storing data using SQLite)
Android Training (Storing data using SQLite)Android Training (Storing data using SQLite)
Android Training (Storing data using SQLite)Khaled Anaqwa
 
Finance Islamique En Tunisie Cas De La Banque Zitouna
Finance Islamique En Tunisie  Cas De La Banque ZitounaFinance Islamique En Tunisie  Cas De La Banque Zitouna
Finance Islamique En Tunisie Cas De La Banque Zitounamohamed araar
 
Application mobile bancaire sous la plateforme Android
Application mobile bancaire sous la plateforme AndroidApplication mobile bancaire sous la plateforme Android
Application mobile bancaire sous la plateforme AndroidKhaled Fayala
 
android sqlite
android sqliteandroid sqlite
android sqliteDeepa Rani
 
Développement d’une application mobile bancaire pour QNB Tunisie
Développement d’une application mobile bancaire pour QNB TunisieDéveloppement d’une application mobile bancaire pour QNB Tunisie
Développement d’une application mobile bancaire pour QNB TunisieKhaled Fayala
 
09.1. Android - Local Database (Sqlite)
09.1. Android - Local Database (Sqlite)09.1. Android - Local Database (Sqlite)
09.1. Android - Local Database (Sqlite)Oum Saokosal
 
La banque de demain, quelle vision en matière de banque de détail ? - 13.06.16
La banque de demain, quelle vision en matière de banque de détail ? - 13.06.16La banque de demain, quelle vision en matière de banque de détail ? - 13.06.16
La banque de demain, quelle vision en matière de banque de détail ? - 13.06.16Jérémy Knafou
 
Conception et réalisation d’une application Mobile banking
Conception et réalisation d’une application  Mobile banking  Conception et réalisation d’une application  Mobile banking
Conception et réalisation d’une application Mobile banking Khaled Fayala
 
Google Maps API for Android
Google Maps API for AndroidGoogle Maps API for Android
Google Maps API for AndroidMaksim Golivkin
 
Android database tutorial
Android database tutorialAndroid database tutorial
Android database tutorialinfo_zybotech
 
DeciLogic exemple d'application Web de geolocalisation
DeciLogic exemple d'application Web de geolocalisationDeciLogic exemple d'application Web de geolocalisation
DeciLogic exemple d'application Web de geolocalisationEric Mauvais
 

En vedette (20)

Sql lite android
Sql lite androidSql lite android
Sql lite android
 
Google Maps
Google MapsGoogle Maps
Google Maps
 
Google Maps Presentation
Google Maps PresentationGoogle Maps Presentation
Google Maps Presentation
 
Democratisation de la Geolocalisation
Democratisation de la GeolocalisationDemocratisation de la Geolocalisation
Democratisation de la Geolocalisation
 
Géolocalisation de données et conception de cartes interactives
Géolocalisation de données et conception de cartes interactivesGéolocalisation de données et conception de cartes interactives
Géolocalisation de données et conception de cartes interactives
 
[Android] Google Service Play & Google Maps
[Android] Google Service Play & Google Maps[Android] Google Service Play & Google Maps
[Android] Google Service Play & Google Maps
 
Android Training (Storing data using SQLite)
Android Training (Storing data using SQLite)Android Training (Storing data using SQLite)
Android Training (Storing data using SQLite)
 
Finance Islamique En Tunisie Cas De La Banque Zitouna
Finance Islamique En Tunisie  Cas De La Banque ZitounaFinance Islamique En Tunisie  Cas De La Banque Zitouna
Finance Islamique En Tunisie Cas De La Banque Zitouna
 
Android - Google Maps
Android - Google MapsAndroid - Google Maps
Android - Google Maps
 
Application mobile bancaire sous la plateforme Android
Application mobile bancaire sous la plateforme AndroidApplication mobile bancaire sous la plateforme Android
Application mobile bancaire sous la plateforme Android
 
android sqlite
android sqliteandroid sqlite
android sqlite
 
Développement d’une application mobile bancaire pour QNB Tunisie
Développement d’une application mobile bancaire pour QNB TunisieDéveloppement d’une application mobile bancaire pour QNB Tunisie
Développement d’une application mobile bancaire pour QNB Tunisie
 
09.1. Android - Local Database (Sqlite)
09.1. Android - Local Database (Sqlite)09.1. Android - Local Database (Sqlite)
09.1. Android - Local Database (Sqlite)
 
La banque de demain, quelle vision en matière de banque de détail ? - 13.06.16
La banque de demain, quelle vision en matière de banque de détail ? - 13.06.16La banque de demain, quelle vision en matière de banque de détail ? - 13.06.16
La banque de demain, quelle vision en matière de banque de détail ? - 13.06.16
 
Conception et réalisation d’une application Mobile banking
Conception et réalisation d’une application  Mobile banking  Conception et réalisation d’une application  Mobile banking
Conception et réalisation d’une application Mobile banking
 
Android development session 6 - Google Maps v2
Android development   session 6 - Google Maps v2Android development   session 6 - Google Maps v2
Android development session 6 - Google Maps v2
 
Google Maps API for Android
Google Maps API for AndroidGoogle Maps API for Android
Google Maps API for Android
 
Nouvelle Application Tablette Credit Mutuel
Nouvelle Application Tablette Credit MutuelNouvelle Application Tablette Credit Mutuel
Nouvelle Application Tablette Credit Mutuel
 
Android database tutorial
Android database tutorialAndroid database tutorial
Android database tutorial
 
DeciLogic exemple d'application Web de geolocalisation
DeciLogic exemple d'application Web de geolocalisationDeciLogic exemple d'application Web de geolocalisation
DeciLogic exemple d'application Web de geolocalisation
 

Similaire à Android application for gps

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 DevelopmentIJERD Editor
 
Android MapView and MapActivity
Android MapView and MapActivityAndroid MapView and MapActivity
Android MapView and MapActivityAhsanul Karim
 
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.pdfAbdullahMunir32
 
Maps in android
Maps in androidMaps in android
Maps in androidSumita Das
 
Visualize Your Data
Visualize Your DataVisualize Your Data
Visualize Your DataKyung Yoo
 
Google Location Services
Google Location ServicesGoogle Location Services
Google Location ServicesVishal Sapariya
 
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
 
Android location based services
Android location based servicesAndroid location based services
Android location based servicesaswath babu
 
Maps API on_mobile_dev_festbangkok
Maps API on_mobile_dev_festbangkokMaps API on_mobile_dev_festbangkok
Maps API on_mobile_dev_festbangkokss318
 
[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 ServicesNikmesoft Ltd
 
Location based services 10
Location based services   10Location based services   10
Location based services 10Michael Shrove
 
Android location
Android locationAndroid location
Android locationKrazy Koder
 
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 applicationAppsbee
 
Android chapter25-map views
Android chapter25-map viewsAndroid chapter25-map views
Android chapter25-map viewsTran Le Hoan
 
Android Rally: Google Maps with LBS
Android Rally: Google Maps with LBSAndroid Rally: Google Maps with LBS
Android Rally: Google Maps with LBSsumitra22
 

Similaire à Android 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
 
Android MapView and MapActivity
Android MapView and MapActivityAndroid MapView and MapActivity
Android MapView and MapActivity
 
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
 
Maps in android
Maps in androidMaps in android
Maps in android
 
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
 
Google Location Services
Google Location ServicesGoogle Location Services
Google Location 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
 
Android location based services
Android location based servicesAndroid location based services
Android location based services
 
Location based services
Location based servicesLocation based services
Location based services
 
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
 
Maps API on_mobile_dev_festbangkok
Maps API on_mobile_dev_festbangkokMaps API on_mobile_dev_festbangkok
Maps API on_mobile_dev_festbangkok
 
[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
 
Location based services 10
Location based services   10Location based services   10
Location based services 10
 
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 chapter25-map views
Android chapter25-map viewsAndroid chapter25-map views
Android chapter25-map views
 
Android Rally: Google Maps with LBS
Android Rally: Google Maps with LBSAndroid Rally: Google Maps with LBS
Android Rally: Google Maps with LBS
 

Dernier

Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 

Dernier (20)

Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 

Android application for gps

  • 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.