Exam 11: Using the Gps and Location Services

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

OnConnectionFailedListener provides a callback method that is automatically called if the connection attempt failed.

Free
(True/False)
4.8/5
(40)
Correct Answer:
Verified

True

The ConnectionCallbacks and OnConnectionFailedListener are static inner __________________ of the GoogleApiClient class.

Free
(Short Answer)
4.8/5
(40)
Correct Answer:
Verified

interfaces

What file must be edited in order to include Google Play services in the compilation process?

Free
(Multiple Choice)
4.9/5
(45)
Correct Answer:
Verified

C

Inside the AndroidManifest.xml file, what String constant of the Manifest.permission class can be used to specify an approximate location?

(Multiple Choice)
4.8/5
(33)

What is the name of the only method of the LocationListener interface?

(Multiple Choice)
5.0/5
(34)

The LocationListener interface is part of the com.google.android.gms.location package.

(True/False)
4.8/5
(39)

Several methods of the GoogleApiClient.Builder class return the GoogleApiClient object reference that called them so that method calls can be ____________.

(Short Answer)
4.8/5
(44)

The Location class includes the getElapsedRealtimeNanos method, which returns the time since the last boot in nanoseconds, so we can compare the time between two location updates if we want to.

(True/False)
4.8/5
(41)

The ____________ method of the Location class returns the longitude of a Location object.

(Short Answer)
4.9/5
(32)

To get a GoogleApiClient reference, we can use the GoogleApiClient constructor.

(True/False)
4.9/5
(31)

To call the requestLocationUpdates method, we need a FusedLocationProviderApi object reference. How can we get one?

(Multiple Choice)
4.9/5
(35)

The ____________ method of the LocationRequest class sets the priority level of the request for location updates.

(Short Answer)
4.7/5
(41)

In what units does the getAccuracy method of the Location class return the accuracy of a Location object?

(Multiple Choice)
4.8/5
(33)

Once location updates have been requested, it is not possible to stop them.

(True/False)
4.8/5
(45)

The __________________ method of the LocationRequest class sets the minimum distance between consecutive updates.

(Short Answer)
5.0/5
(35)

One of the two methods of ConnectionCallbacks is onConnectionSuspended. What is the name of its other method?

(Multiple Choice)
4.9/5
(43)

What method of the GoogleApiClient class do we call to close the connection with Google Play services?

(Multiple Choice)
4.7/5
(35)

The startResolutionForResult method of the ConnectionResult class throws an exception.

(True/False)
4.8/5
(41)

ConnectionCallbacks provides callback methods that are automatically called when we ____________ or are disconnected from the Google Play service.

(Short Answer)
4.7/5
(39)

The __________________ method of the FusedLocationProviderApi interface returns the current location of the device as a Location reference.

(Short Answer)
4.8/5
(33)
Showing 1 - 20 of 21
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)