0
Android Application Development<br />GPS Access<br />Ahsanul Karim<br />ahsanul.karim@sentinelbd.com<br />Sentinel Solutio...
GPS Technology: Simplified<br /><ul><li>The Global Positioning System (GPS) is a satellite-based navigation system made </...
There are no subscription fees or setup charges to use GPS.</li></li></ul><li>GPS Technology: Simplified (Contd.)<br /><ul...
GPS receivers require an unobstructed view of the sky
Depend on a very accurate time reference, which is provided by atomic clocks at the U.S. Naval Observatory. Each GPS satel...
Each GPS satellite transmits data that indicates its location and the current time.
All GPS satellites synchronize operations so that these repeating signals are transmitted at the same instant.
The signals, moving at the speed of light, arrive at a GPS receiver at slightly different times because some satellites ar...
The distance to the GPS satellites can be determined by estimating the amount of time it takes for their signals to reach ...
When the receiver estimates the distance to at least four GPS satellites, it can calculate its position in three dimensions.
There are at least 24 operational GPS satellites at all times. The satellites, operated by the U.S. Air Force, orbit with ...
GPS Access<br />Create a project Named “UseGps”<br />We need to add some permissions to use GPS and Internet<br />
Upcoming SlideShare
Loading in...5
×

Android GPS Tutorial

47,661

Published on

Published in: Education, Technology, Business
8 Comments
10 Likes
Statistics
Notes
No Downloads
Views
Total Views
47,661
On Slideshare
0
From Embeds
0
Number of Embeds
10
Actions
Shares
0
Downloads
1,425
Comments
8
Likes
10
Embeds 0
No embeds

No notes for slide

Transcript of "Android GPS Tutorial"

  1. 1. Android Application Development<br />GPS Access<br />Ahsanul Karim<br />ahsanul.karim@sentinelbd.com<br />Sentinel Solutions Ltd.<br />http://www.sentinelbd.com<br />
  2. 2. GPS Technology: Simplified<br /><ul><li>The Global Positioning System (GPS) is a satellite-based navigation system made </li></ul>up of a network of 24 satellites placed into orbit by the U.S. Department of Defense. <br /><ul><li>GPS was originally intended for military applications, but in the 1980s, the </li></ul>government made the system available for civilian use. <br /><ul><li>GPS works in any weather conditions, anywhere in the world, 24 hours a day.
  3. 3. There are no subscription fees or setup charges to use GPS.</li></li></ul><li>GPS Technology: Simplified (Contd.)<br /><ul><li>Global Positioning System satellites transmit signals to equipment (receivers) on the ground. GPS receivers passively receive satellite signals; they do not transmit.
  4. 4. GPS receivers require an unobstructed view of the sky
  5. 5. Depend on a very accurate time reference, which is provided by atomic clocks at the U.S. Naval Observatory. Each GPS satellite has atomic clocks on board.
  6. 6. Each GPS satellite transmits data that indicates its location and the current time.
  7. 7. All GPS satellites synchronize operations so that these repeating signals are transmitted at the same instant.
  8. 8. The signals, moving at the speed of light, arrive at a GPS receiver at slightly different times because some satellites are farther away than others.
  9. 9. The distance to the GPS satellites can be determined by estimating the amount of time it takes for their signals to reach the receiver.
  10. 10. When the receiver estimates the distance to at least four GPS satellites, it can calculate its position in three dimensions.
  11. 11. There are at least 24 operational GPS satellites at all times. The satellites, operated by the U.S. Air Force, orbit with a period of 12 hours. </li></li></ul><li>GPS Technology: Determining Position<br />
  12. 12. GPS Access<br />Create a project Named “UseGps”<br />We need to add some permissions to use GPS and Internet<br />
  13. 13. GPS Access<br />3. Now we need add a location listener, so each time the GPS senses a new location, <br />this callback function will be called from the android system.<br />To do this, we need to add the fallowing code in the onCreate() method:<br />
  14. 14. GPS Access<br />4. We now have to create MyLocationListener class that implements LocationListener and <br />Implement methods for various events:<br />· onLocationChanged ( Location Update )<br />· onProviderDisabled ( GPS Off )<br />· onProviderEnabled (GPS On )<br />
  15. 15. GPS Access<br />
  16. 16. GPS Access<br />5. Now we run the app in emulator and use emulator control to emulate the GPS module<br />
  17. 17. GPS Access<br />6. Now we’ll add a webview to main.xml layout and show the location in a map<br />7. Capture the webview by findViewById()<br />
  18. 18. GPS Access<br />8. Now when the location is changed <br />9. Lets run it again<br />
  19. 19. GPS Access<br />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×