CallLog.Calls.Location Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A reference to the location that was sent via call composer.
[Android.Runtime.Register("LOCATION", ApiSince=31)]
public const string Location;
[<Android.Runtime.Register("LOCATION", ApiSince=31)>]
val mutable Location : string
Field Value
- Attributes
Remarks
A reference to the location that was sent via call composer.
This column contains the content URI of the corresponding entry in Locations
table, which contains the actual location data. The Manifest.permission#ACCESS_FINE_LOCATION
permission is required to access that table.
If your app has the appropriate permissions, the location data may be obtained by converting the value of this column to an Uri
via Uri#parse
, then passing the result to ContentResolver#query
.
The user may choose to delete the location associated with a call independently of the call log entry, in which case the Cursor
returned from ContentResolver#query
will either be null
or empty, with Cursor#getCount()
returning 0
.
This column will not be populated when a call is received while the device is locked, and it will not be part of any backups.
Type: TEXT
Java documentation for android.provider.CallLog.Calls.LOCATION
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.