aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2010-10-07 21:07:12 +0200
committerHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2010-10-07 21:07:12 +0200
commit42a675e9c5d0f89486d8bd99df00f3b6ce2cab4d (patch)
treeb4e92861dd4aa259824ec93d976e5b34da68ee34
parent84cc9f94a03ad60799e46979731f22112dbc8396 (diff)
downloadBlueGPS-42a675e9c5d0f89486d8bd99df00f3b6ce2cab4d.zip
BlueGPS-42a675e9c5d0f89486d8bd99df00f3b6ce2cab4d.tar.gz
BlueGPS-42a675e9c5d0f89486d8bd99df00f3b6ce2cab4d.tar.bz2
move constructor before methods
-rw-r--r--src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java b/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java
index bd9464d..04d7001 100644
--- a/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java
+++ b/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java
@@ -132,6 +132,12 @@ public class BlueetoothGpsManager {
// private Handler nmeaSentenceHandler = new Handler();
+ public BlueetoothGpsManager(Service callingService, String deviceAddress) {
+ this.gpsDeviceAddress = deviceAddress;
+ this.callingService = callingService;
+ locationManager = (LocationManager)callingService.getSystemService(Context.LOCATION_SERVICE);
+ parser.setLocationManager(locationManager);
+ }
/**
* @return true if the bluetooth GPS is enabled
@@ -140,13 +146,6 @@ public class BlueetoothGpsManager {
return enabled;
}
- public BlueetoothGpsManager(Service callingService, String deviceAddress) {
- this.gpsDeviceAddress = deviceAddress;
- this.callingService = callingService;
- locationManager = (LocationManager)callingService.getSystemService(Context.LOCATION_SERVICE);
- parser.setLocationManager(locationManager);
- }
-
public synchronized void enable() {
if (! enabled){
this.enabled = true;