From 1f06a663cc53a75031b6101800a3655fe8f619a2 Mon Sep 17 00:00:00 2001 From: mar-v-in Date: Tue, 11 Mar 2014 19:51:23 +0100 Subject: [PATCH] Backends should require ACCESS_COARSE_LOCATION permission Added this to example, as well as various fixes --- sample/AndroidManifest.xml | 10 +++++++++- .../org/microg/nlp/api/sample/ThirdSampleService.java | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/sample/AndroidManifest.xml b/sample/AndroidManifest.xml index 6813f8c..84e1e93 100644 --- a/sample/AndroidManifest.xml +++ b/sample/AndroidManifest.xml @@ -1,16 +1,22 @@ - + @@ -20,6 +26,7 @@ @@ -37,6 +44,7 @@ diff --git a/sample/src/org/microg/nlp/api/sample/ThirdSampleService.java b/sample/src/org/microg/nlp/api/sample/ThirdSampleService.java index 9b7206b..a8453a2 100644 --- a/sample/src/org/microg/nlp/api/sample/ThirdSampleService.java +++ b/sample/src/org/microg/nlp/api/sample/ThirdSampleService.java @@ -11,7 +11,7 @@ public class ThirdSampleService extends LocationBackendService { private static final String TAG = ThirdSampleService.class.getName(); private Thread regular; - private Random random = new Random(); + private final Random random = new Random(); @Override protected void onOpen() {