From 9e49237f01d0d229eaf3698da962dc700125113a Mon Sep 17 00:00:00 2001 From: Lukas Vacek Date: Wed, 25 Feb 2015 01:36:38 +0100 Subject: [PATCH] Command dispatching - code to parse and dispatch commands added - ResponseWriter utility class added - Password command implementation added Several bugfixes - wakelock added - preferences properly loaded (first start) - rebinding removed --- .idea/inspectionProfiles/Project_Default.xml | 1 + app/src/main/AndroidManifest.xml | 1 + .../luv/mockgeofix/CommandDispatcher.java | 60 ++++++++++ .../github/luv/mockgeofix/MainActivity.java | 2 +- .../github/luv/mockgeofix/MockGeoFixApp.java | 3 + .../luv/mockgeofix/MockLocationService.java | 104 +++++++++--------- .../luv/mockgeofix/SettingsActivity.java | 41 +++++++ .../luv/mockgeofix/command/Command.java | 7 ++ .../mockgeofix/command/PasswordCommand.java | 58 ++++++++++ .../luv/mockgeofix/util/ResponseWriter.java | 46 ++++++++ app/src/main/res/values/strings.xml | 3 + 11 files changed, 272 insertions(+), 54 deletions(-) create mode 100644 app/src/main/java/github/luv/mockgeofix/CommandDispatcher.java create mode 100644 app/src/main/java/github/luv/mockgeofix/command/Command.java create mode 100644 app/src/main/java/github/luv/mockgeofix/command/PasswordCommand.java create mode 100644 app/src/main/java/github/luv/mockgeofix/util/ResponseWriter.java diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 76213cf..af74255 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -19,6 +19,7 @@