diff --git a/LocationLib/.settings/org.eclipse.jdt.core.prefs b/LocationLib/.settings/org.eclipse.jdt.core.prefs
index 9e980b5..8000cd6 100644
--- a/LocationLib/.settings/org.eclipse.jdt.core.prefs
+++ b/LocationLib/.settings/org.eclipse.jdt.core.prefs
@@ -1,4 +1,3 @@
-#Sun Oct 17 11:03:21 EDT 2010
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
diff --git a/LocationLib/AndroidManifest.xml b/LocationLib/AndroidManifest.xml
index 10821b5..5aa7dd1 100644
--- a/LocationLib/AndroidManifest.xml
+++ b/LocationLib/AndroidManifest.xml
@@ -12,14 +12,22 @@
-
-
+
+ android:targetSdkVersion="11" />
+
+
+
+
+
@@ -28,9 +36,6 @@
android:name="LocationService"
android:process=":locationservice" >
-
-
-
\ No newline at end of file
diff --git a/LocationLib/bin/locationlib.jar b/LocationLib/bin/locationlib.jar
index 3cd8212..0b57fc4 100644
Binary files a/LocationLib/bin/locationlib.jar and b/LocationLib/bin/locationlib.jar differ
diff --git a/LocationLib/lint.xml b/LocationLib/lint.xml
new file mode 100644
index 0000000..ee0eead
--- /dev/null
+++ b/LocationLib/lint.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/LocationLib/src/com/TwentyCodes/android/SkyHook/Splash.java b/LocationLib/src/com/TwentyCodes/android/SkyHook/Splash.java
deleted file mode 100644
index 1455169..0000000
--- a/LocationLib/src/com/TwentyCodes/android/SkyHook/Splash.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * @author Twenty Codes, LLC
- * @author ricky barrette
- * @date Nov 3, 2010
- */
-package com.TwentyCodes.android.SkyHook;
-
-import com.TwentyCodes.android.location.R;
-
-import android.app.Activity;
-import android.content.Context;
-import android.content.Intent;
-import android.os.Bundle;
-import android.os.Handler;
-
-/**
- * this activity will be used to display the Twenty Codes, LLC and Skyhook Wireless Splash Screen
- * @author ricky barrette
- */
-public class Splash extends Activity {
-
- @Override
- public void onCreate(Bundle savedInstanceState){
- setContentView(R.layout.powered_by_skyhook);
-
- new Handler().postDelayed( new Runnable() {
- @Override
- public void run(){
- finish();
- }
- } , 1500L);
-
- super.onCreate(savedInstanceState);
- }
-
- /**
- * a convince method for starting the splash screen activity
- * @param context
- * @return a runnable that will start the splash screen
- * @author ricky barrette
- */
- public static Runnable showSpashScreen(final Context context){
- return new Runnable() {
- @Override
- public void run(){
- context.startActivity(new Intent(context, com.TwentyCodes.android.SkyHook.Splash.class));
- }
- };
- }
-}
diff --git a/LocationLib/src/com/TwentyCodes/android/location/CompassSensor.java b/LocationLib/src/com/TwentyCodes/android/location/CompassSensor.java
index 7ffd163..b0258e6 100644
--- a/LocationLib/src/com/TwentyCodes/android/location/CompassSensor.java
+++ b/LocationLib/src/com/TwentyCodes/android/location/CompassSensor.java
@@ -46,12 +46,23 @@ public class CompassSensor{
public static final String TAG = "CompassSensor";
private static final int BEARING = 0;
private final Display mDisplay;
- private final Handler mHandler;
+ private static final Handler mHandler;
private final SensorManager mSensorManager;
private final Context mContext;
- private CompassListener mListener;
+ private static CompassListener mListener;
private float mDelination = 0;
+ static{
+ mHandler = new Handler(){
+ @Override
+ public void handleMessage(Message msg){
+ if(mListener != null)
+ if(msg.what == BEARING)
+ mListener.onCompassUpdate((Float) msg.obj);
+ }
+ };
+ }
+
private final SensorEventListener mCallBack = new SensorEventListener() {
private float[] mRotationMatrix = new float[16];
@@ -173,15 +184,6 @@ public class CompassSensor{
public CompassSensor(final Context context) {
mContext = context;
mDisplay = ((WindowManager) mContext.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
- mHandler = new Handler(){
- @Override
- public void handleMessage(Message msg){
- if(mListener != null)
- if(msg.what == BEARING)
- mListener.onCompassUpdate((Float) msg.obj);
- }
- };
-
mSensorManager = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);
}