Date post: | 19-May-2015 |
Category: |
Technology |
Upload: | farhad |
View: | 1,726 times |
Download: | 2 times |
Developing Location Based Applications for Android
Rajab Davudov
Outline• Introduction• GPS, aGPS and Google Maps API• Starred Applications• Sample Application Tutorial
Application Areas• Navigation Tools
• Tracking Applications Truck/Car Person Bus/Metro tracking
• Emergency Applications (Accident, Fire etc.)
• Location Based Advertisements and Discounts
• Location Based Personalization
Application Areas• Nearest Shop/Office Applications
• Geospatial Analysis
• Social Integration Applications GeoTagging (locations, pictures, videos)
• Personal Metering Applications Car Biking Running
• Spy Applications (not recommended)
Global Positioning System and Maps API
assisted - GPS
Starred Applicationscab4me BeetaunGoogle Maps
100,000,000 - 500,000,000
100,000 - 500,000
Starred ApplicationsCar Locator SpotMessage iNap: Arrival Alert
100,000 - 500,000 5,000 - 10,000 5,000 - 10,000
Speedometer ApplicationsUlysse Speedometer GPS Speedo AzSpeedoMeter
Other Applications
• Azercell with CaspianNavTel (Symbian and Windows Mobile)• http://yerler.im/
Requirements
• Eclipse• Android SDK
ToDo List :
1. new Android Application2. Modify source files, AndroidManifest and layout xml3. Sign for Google Maps API Key4. new Android Device5. run MapDemo Application on Device
Sample Application Tutorial
Create an empty Android Application
New Android Project
Google APIsGoogle APIs
Folder StructureMapDemo.javaMapDemo.java
main.xmlmain.xml
AndroidManifest.xmlAndroidManifest.xml
AndroidManifest.xml
MapDemo.java – Initial Java Source
MapDemo.java – add LocationListener
MapActivityMapActivityLocationListenerLocationListener
onLocationChangedonLocationChanged
res/layout/main.xml – add MapView to layout
MapDemo.java – update MapView with LocationListener
MapViewMapView
MapControllerMapController
Obtaining a Maps API Key
1. Find MD5 fingerprint for keystore2. Sign up for API Key from web site
Window -> Preferences
Get MD5 Fingerprint (Java 6)
> keytool -list -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android
Get MD5 Fingerprint (Java 7)
> keytool -v -list -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android
Sign up for Google Map API Key
http://code.google.com/android/maps-api-signup.html
Sign up for Google Map API Key
res/layout/main.xml – add MapView to layout
new Android Device
new Android Device Google APIsGoogle APIs
Run Application
Rajab Davudov
Senior Specialist at Azerfon [email protected]
http://gplus.to/radjabhttp://www.fb.me/rajab.davudovhttp://www.linkedin.com/in/radjab