01.11.2014 Views

The AndroidManifest.xml File - 안드로이드 기술 커뮤니티 : Korea ...

The AndroidManifest.xml File - 안드로이드 기술 커뮤니티 : Korea ...

The AndroidManifest.xml File - 안드로이드 기술 커뮤니티 : Korea ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Location<br />

android.location<br />

This package contains several classes related to location services in the Android platform. Most<br />

importantly, it introduces the LocationManager service, which provides an API to determine location and<br />

bearing if the underlying device (if it supports the service). <strong>The</strong> LocationManager should not be<br />

instantiated ti t directly; rather, a handle to it should be retrieved via<br />

getSystemService(Context.LOCATION_SERVICE).<br />

Once your application has a handle to the LocationManager, your application will be able to do three<br />

things:<br />

• Query for the list of all LocationProviders known to the LocationManager for its last known location.<br />

• Register/unregister for periodic updates of current location from a LocationProvider (specified either by<br />

Criteria or name).<br />

• Register/unregister for a given Intent to be fired if the device comes within a given proximity (specified<br />

by radius in meters) of a given lat/long.<br />

However, during initial development, you may not have access to real data from a real location provider<br />

(Network or GPS). So it may be necessary to spoof some data for your application, with some mock<br />

location data.<br />

<strong>Korea</strong> Android Community- www.kandroid.org<br />

163

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!