summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/TelemetryService.java
diff options
context:
space:
mode:
authorBrad Leege <bleege@gmail.com>2016-02-01 11:27:09 -0600
committerBrad Leege <bleege@gmail.com>2016-02-10 19:05:19 -0800
commit9d5ef69a2eb631e65dfa3ed8a66425a6c6580912 (patch)
tree0586a3ec74ec5ffa211c86c68d24c5de773ff1c5 /platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/TelemetryService.java
parent9436e4ff997b289dcd3a4fdda028889a97d9d67a (diff)
downloadqtlocation-mapboxgl-9d5ef69a2eb631e65dfa3ed8a66425a6c6580912.tar.gz
[android] #2421 - Removing PendingIntent as it's no longer needed
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/TelemetryService.java')
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/TelemetryService.java24
1 files changed, 0 insertions, 24 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/TelemetryService.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/TelemetryService.java
index f0ce0e10c9..a4965b0e45 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/TelemetryService.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/TelemetryService.java
@@ -1,6 +1,4 @@
package com.mapbox.mapboxsdk.telemetry;
-
-import android.app.PendingIntent;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
@@ -10,14 +8,12 @@ import android.os.AsyncTask;
import android.os.IBinder;
import android.os.PowerManager;
import android.support.annotation.Nullable;
-import android.util.Log;
public class TelemetryService extends Service {
private static final String TAG = "TelemetryService";
private TelemetryLocationReceiver telemetryLocationReceiver = null;
- private PendingIntent locationPendingIntent = null;
private PowerManager.WakeLock telemetryWakeLock;
/**
@@ -134,30 +130,10 @@ public class TelemetryService extends Service {
telemetryWakeLock = mgr.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "TelemetryWakeLock");
telemetryWakeLock.acquire();
- // Start Ambient Location Listening
- // TODO
-
-/*
- Intent locIntent = new Intent(TelemetryLocationReceiver.INTENT_STRING);
- locationPendingIntent = PendingIntent.getBroadcast(getApplicationContext(), 14872, locIntent, PendingIntent.FLAG_CANCEL_CURRENT);
-*/
- try {
- // Request Location Updates to be delivered to PendingIntent
- // Currently Not supported in LOST
- // TODO
-// locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000, 3.0f, mLocationPendingIntent);
- } catch (SecurityException e) {
- Log.e(TAG, "Permissions Not Authorized For Location Updates: " + e);
- }
-
-
return START_NOT_STICKY;
}
private void shutdownTelemetry() {
- // TODO
-// locationManager.removeUpdates(mLocationPendingIntent);
- locationPendingIntent.cancel();
unregisterReceiver(telemetryLocationReceiver);
telemetryWakeLock.release();
}