Skip to content

Instantly share code, notes, and snippets.

@tssandor
Created February 15, 2022 07:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tssandor/b0c6044525a213b00a28175699160651 to your computer and use it in GitHub Desktop.
Save tssandor/b0c6044525a213b00a28175699160651 to your computer and use it in GitHub Desktop.
// USE Constans.PRIORITY_HIGH_ACCURACY:
// to request the most accurate locations available.
// This will return the finest location available.
// OR Constans.PRIORITY_BALANCED_POWER_ACCURACY:
// to request "block" level accuracy.
// Block level accuracy is considered to be about 100 meter accuracy.
// Using a coarse accuracy such as this often consumes less power.
Client.getInstance().startTrackingLocation(this,
getActivityResultRegistry(),
Constants.PRIORITY_BALANCED_POWER_ACCURACY,
new GeneralCallback() {
@Override
public void onSuccess(String data) {
}
@Override
public void onError(String result) {
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment