diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..c0a6d45
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,13 @@
+ Copyright 2012 Richard Barrette
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License
diff --git a/LocationLib/doc/allclasses-frame.html b/LocationLib/doc/allclasses-frame.html
deleted file mode 100644
index f9f2483..0000000
--- a/LocationLib/doc/allclasses-frame.html
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
-
bearing(double lat1,
- double lon1,
- double lat2,
- double lon2)
-
-
- computes the bearing of lat2/lon2 in relationship from lat1/lon1 in degrees East
-
-
-
-static double
-
bearing(GeoPoint p1,
- GeoPoint p2)
-
-
- computes the bearing of lat2/lon2 in relationship from lat1/lon1 in degrees East
-
-
-
-static GeoPoint
-
distanceFrom(GeoPoint point,
- double distance)
-
-
- Calculates a geopoint x meters away of the geopoint supplied.
-
-
-
-static double
-
distanceKm(double lat1,
- double lon1,
- double lat2,
- double lon2)
-
-
- computes the distance between to lat1/lon1 and lat2/lon2 based on the curve of the earth
-
-
-
-static double
-
distanceKm(GeoPoint p1,
- GeoPoint p2)
-
-
- computes the distance between to p1 and p2 based on the curve of the earth
-
-
-
-static GeoPoint
-
midPoint(GeoPoint p1,
- GeoPoint p2)
-
-
- computes a geopoint the is the central geopoint between p1 and p1
-
-
-
-static double
-
radToBearing(double rad)
-
-
- converts radians to bearing
computes the bearing of lat2/lon2 in relationship from lat1/lon1 in degrees East
-
-
-
Parameters:
p1 - source geopoint
p2 - destination geopoint
-
Returns:
the bearing of p2 in relationship from p1 in degrees East
-
-
-
-
-
-distanceFrom
-
-public static GeoPoint distanceFrom(GeoPoint point,
- double distance)
-
-
Calculates a geopoint x meters away of the geopoint supplied. The new geopoint
- shares the same latitude as geopoint point, this way they are on the same latitude arc.
-
-
-
Parameters:
point - central geopoint
distance - in meters from the geopoint
-
Returns:
geopoint that is x meters away from the geopoint supplied
-this class will be used to start the skyhook service and obtain a partial wake lock to prevent the phone from sleeping while we are getting the users location
-
request current user location, note that the listeners onLocationChanged() will be call multiple times.
- updates will stop once an accurate location is determined.
-
-
-
-
-
-
-
-
-getUpdates
-
-public void getUpdates()
-
-
Attempts to register the the listener for periodic updates
-
-
-
-
-
-
-
-
-removeUpdates
-
-public void removeUpdates()
-
-
Removes any current registration for location updates of the current activity
- with the given LocationListener. Following this call, updates will no longer
- occur for this listener.
-
Used for receiving notifications from SkyHook when
- the location has changed. These methods are called if the
- LocationListener has been registered with the location manager service using the method.
-
onStart(Intent intent,
- int startId)
-
-
- To keep backwards compatibility we override onStart which is the equivalent of onStartCommand in pre android 2.x
-
-
-
- int
-
onStartCommand(Intent intent,
- int flags,
- int startId)
-
-
- This method is called when startService is called.
SkyHookUserOverlay(MapView mapView,
- Context context)
-
-
- Construct a new SkyHookUserOverlaymFollowUser
-
-
-
SkyHookUserOverlay(MapView mapView,
- Context context,
- boolean followUser)
-
-
- Construct a new SkyHookUserOverlay
-
-
-
-
-
-
-
-
-
-Method Summary
-
-
-
- void
-
disableMyLocation()
-
-
- Stops location updates and removes the overlay from view
-
-
-
- void
-
draw(Canvas canvas,
- MapView mapView,
- boolean shadow)
-
-
- we override this methods so we can provide a drawable and a location to draw on the canvas.
-
-
-
- void
-
enableMyLocation()
-
-
- Attempts to enable MyLocation, registering for updates from sky hook
-
-
-
- void
-
followUser(boolean followUser)
-
-
- Allows the map to follow the user
-
-
-
- float
-
getUserBearing()
-
-
- returns the users current bearing
onAccuracyChanged(Sensor sensor,
- int accuracy)
-
-
- Called when the accuracy of a sensor has changed.
-
-
-
- void
-
onSensorChanged(SensorEvent event)
-
-
- Called when sensor values have changed.
-
-
-
- void
-
onXPSLocationChanged(GeoPoint point,
- int accuracy)
-
-
- called when the SkyHook location changes, this mthod is resposiable for updating the overlay location and accuracy circle.
SkyHookUserOverlay.draw(Canvas canvas,
- MapView mapView,
- boolean shadow)
-
-
- we override this methods so we can provide a drawable and a location to draw on the canvas.
bearing(double lat1,
- double lon1,
- double lat2,
- double lon2)
-
-
- computes the bearing of lat2/lon2 in relationship from lat1/lon1 in degrees East
-
-
-
-static double
-
bearing(GeoPoint p1,
- GeoPoint p2)
-
-
- computes the bearing of lat2/lon2 in relationship from lat1/lon1 in degrees East
-
-
-
-static GeoPoint
-
distanceFrom(GeoPoint point,
- double distance)
-
-
- Calculates a geopoint x meters away of the geopoint supplied.
-
-
-
-static double
-
distanceKm(double lat1,
- double lon1,
- double lat2,
- double lon2)
-
-
- computes the distance between to lat1/lon1 and lat2/lon2 based on the curve of the earth
-
-
-
-static double
-
distanceKm(GeoPoint p1,
- GeoPoint p2)
-
-
- computes the distance between to p1 and p2 based on the curve of the earth
-
-
-
-static boolean
-
isIntersecting(GeoPoint userPoint,
- float accuracyRadius,
- GeoPoint locationPoint,
- float locationRadius,
- float fudgeFactor)
-
-
- a convince method for testing if 2 circles on the the surface of the earth intersect.
computes the bearing of lat2/lon2 in relationship from lat1/lon1 in degrees East
-
-
-
Parameters:
p1 - source geopoint
p2 - destination geopoint
-
Returns:
the bearing of p2 in relationship from p1 in degrees East
-
-
-
-
-
-distanceFrom
-
-public static GeoPoint distanceFrom(GeoPoint point,
- double distance)
-
-
Calculates a geopoint x meters away of the geopoint supplied. The new geopoint
- shares the same latitude as geopoint point, this way they are on the same latitude arc.
-
-
-
Parameters:
point - central geopoint
distance - in meters from the geopoint
-
Returns:
geopoint that is x meters away from the geopoint supplied
a convince method for testing if 2 circles on the the surface of the earth intersect.
- we will use this method to test if the users accuracy circle intersects a marked locaton's radius
- if ( (accuracyCircleRadius + locationRadius) - fudgeFactor) > acos(sin(lat1Rad)sin(lat2Rad)+cos(lat1Rad)cos(lat2Rad)cos(lon2Rad-lon1Rad)6371
-
-
-
Parameters:
userPoint -
accuracyRadius - in KM
locationPoint -
locationRadius - in KM
fudgeFactor - how many KM the circles have to intersect
-
onStart(Intent intent,
- int startId)
-
-
- To keep backwards compatibility we override onStart which is the equivalent of onStartCommand in pre android 2.x
-
-
-
- int
-
onStartCommand(Intent intent,
- int flags,
- int startId)
-
-
- This method is called when startService is called.
-This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
-Overview
-
-
-
-The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
-
-Package
-
-
-
-Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:
-
Interfaces (italic)
Classes
Enums
Exceptions
Errors
Annotation Types
-
-
-Class/Interface
-
-
-
-Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
-
Class inheritance diagram
Direct Subclasses
All Known Subinterfaces
All Known Implementing Classes
Class/interface declaration
Class/interface description
-
-
Nested Class Summary
Field Summary
Constructor Summary
Method Summary
-
-
Field Detail
Constructor Detail
Method Detail
-Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
-
-
-Annotation Type
-
-
-
-Each annotation type has its own separate page with the following sections:
-
Annotation Type declaration
Annotation Type description
Required Element Summary
Optional Element Summary
Element Detail
-
-
-
-Enum
-
-
-
-Each enum has its own separate page with the following sections:
-
Enum declaration
Enum description
Enum Constant Summary
Enum Constant Detail
-
-
-Use
-
-Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
-
-Tree (Class Hierarchy)
-
-There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
-
When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
-
-
-Deprecated API
-
-The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
-
-Index
-
-The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
-
-Prev/Next
-These links take you to the next or previous class, interface, package, or related page.
-Frames/No Frames
-These links show and hide the HTML frames. All pages are available with or without frames.
-
-
-Serialized Form
-Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
-
-
-
-
-
-
-
-
diff --git a/LocationLib/doc/stylesheet.css b/LocationLib/doc/stylesheet.css
deleted file mode 100644
index 6ea9e51..0000000
--- a/LocationLib/doc/stylesheet.css
+++ /dev/null
@@ -1,29 +0,0 @@
-/* Javadoc style sheet */
-
-/* Define colors, fonts and other style attributes here to override the defaults */
-
-/* Page background color */
-body { background-color: #FFFFFF; color:#000000 }
-
-/* Headings */
-h1 { font-size: 145% }
-
-/* Table colors */
-.TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */
-.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */
-.TableRowColor { background: #FFFFFF; color:#000000 } /* White */
-
-/* Font used in left-hand frame lists */
-.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 }
-.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 }
-.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 }
-
-/* Navigation bar fonts and colors */
-.NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */
-.NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */
-.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;}
-.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;}
-
-.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000}
-.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000}
-
diff --git a/LocationLib/res/drawable/logoidea3.png b/LocationLib/res/drawable/logoidea3.png
deleted file mode 100644
index 75e51b6..0000000
Binary files a/LocationLib/res/drawable/logoidea3.png and /dev/null differ
diff --git a/LocationLib/res/drawable/skyhook_logo.jpg b/LocationLib/res/drawable/skyhook_logo.jpg
deleted file mode 100644
index 6e877e1..0000000
Binary files a/LocationLib/res/drawable/skyhook_logo.jpg and /dev/null differ
diff --git a/LocationLib/res/drawable/skyhook_logo_alpha.png b/LocationLib/res/drawable/skyhook_logo_alpha.png
deleted file mode 100644
index 417e5d1..0000000
Binary files a/LocationLib/res/drawable/skyhook_logo_alpha.png and /dev/null differ
diff --git a/LocationLib/res/drawable/skyhook_logo_alpha_small.png b/LocationLib/res/drawable/skyhook_logo_alpha_small.png
deleted file mode 100644
index cea2154..0000000
Binary files a/LocationLib/res/drawable/skyhook_logo_alpha_small.png and /dev/null differ
diff --git a/LocationLib/res/drawable/tc_logo_complete.png b/LocationLib/res/drawable/tc_logo_complete.png
deleted file mode 100644
index 231f42e..0000000
Binary files a/LocationLib/res/drawable/tc_logo_complete.png and /dev/null differ
diff --git a/LocationLib/res/layout/powered_by_skyhook.xml b/LocationLib/res/layout/powered_by_skyhook.xml
deleted file mode 100644
index 2bdfd79..0000000
--- a/LocationLib/res/layout/powered_by_skyhook.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/LocationLib/res/values/strings.xml b/LocationLib/res/values/strings.xml
index 4472b8a..04c8c95 100644
--- a/LocationLib/res/values/strings.xml
+++ b/LocationLib/res/values/strings.xml
@@ -1,9 +1,8 @@
- SkyHookLib
+ Location LibraryGPS FixWe are having issues finding your location. Please be patient as we continue to try in the background.
- Powered By:
\ No newline at end of file
diff --git a/LocationLib/src/com/TwentyCodes/android/debug/Debug.java b/LocationLib/src/com/TwentyCodes/android/debug/Debug.java
index 7ebb39e..d35147e 100644
--- a/LocationLib/src/com/TwentyCodes/android/debug/Debug.java
+++ b/LocationLib/src/com/TwentyCodes/android/debug/Debug.java
@@ -2,7 +2,20 @@
* Debug.java
* @date May 15, 2012
* @author ricky barrette
- * @author Twenty Codes, LLC
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.debug;
diff --git a/LocationLib/src/com/TwentyCodes/android/debug/LocationLibraryConstants.java b/LocationLib/src/com/TwentyCodes/android/debug/LocationLibraryConstants.java
index abeaca3..f28f819 100644
--- a/LocationLib/src/com/TwentyCodes/android/debug/LocationLibraryConstants.java
+++ b/LocationLib/src/com/TwentyCodes/android/debug/LocationLibraryConstants.java
@@ -2,7 +2,20 @@
* LocationLibraryConstants.java
* @date Mar 1, 2011
* @author ricky barrette
- * @author Twenty Codes, LLC
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.debug;
@@ -23,14 +36,6 @@ public final class LocationLibraryConstants {
SUPPORTS_GINGERBREAD = android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.GINGERBREAD;
}
- /**
- * Sets the default SkyHook Registration Behavior used by
- * SkyHookRegistration.getUserName()
- *
- * @author ricky barrette
- */
- public static final SkyHookRegistrationBehavior DEFAULT_REGISTRATION_BEHAVIOR = SkyHookRegistrationBehavior.NORMAL;
-
/**
* Sets the default compass sensor update interval
*
diff --git a/LocationLib/src/com/TwentyCodes/android/debug/SkyHookRegistrationBehavior.java b/LocationLib/src/com/TwentyCodes/android/debug/SkyHookRegistrationBehavior.java
deleted file mode 100644
index 119a8c4..0000000
--- a/LocationLib/src/com/TwentyCodes/android/debug/SkyHookRegistrationBehavior.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * SkyHookTesting.java
- * @date Mar 1, 2011
- * @author ricky barrette
- * @author Twenty Codes, LLC
- */
-package com.TwentyCodes.android.debug;
-
-/**
- * This enum will be used to select the testing level
- *
- * @author ricky barrette
- */
-public enum SkyHookRegistrationBehavior {
-
- /**
- * Used to force SkyHookRegistration.getUserName to behave normally
- */
- NORMAL,
-
- /**
- * Used to force SkyHookRegistration.getUserName to return the testing user
- * name
- */
- USE_TESTING_USERNAME,
-
- /**
- * Used to force SkyHookRegistration.getUserName to return null
- */
- RETURN_NULL;
-
-}
\ No newline at end of file
diff --git a/LocationLib/src/com/TwentyCodes/android/fragments/BaseMapFragment.java b/LocationLib/src/com/TwentyCodes/android/fragments/BaseMapFragment.java
index 669ad60..ccff3c7 100644
--- a/LocationLib/src/com/TwentyCodes/android/fragments/BaseMapFragment.java
+++ b/LocationLib/src/com/TwentyCodes/android/fragments/BaseMapFragment.java
@@ -2,7 +2,20 @@
* MapFragment.java
* @date Jan 7, 2012
* @author ricky barrette
- * @author Twenty Codes, LLC
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.fragments;
diff --git a/LocationLib/src/com/TwentyCodes/android/fragments/DirectionsAdapter.java b/LocationLib/src/com/TwentyCodes/android/fragments/DirectionsAdapter.java
index 912db8f..1566d66 100644
--- a/LocationLib/src/com/TwentyCodes/android/fragments/DirectionsAdapter.java
+++ b/LocationLib/src/com/TwentyCodes/android/fragments/DirectionsAdapter.java
@@ -1,7 +1,21 @@
/**
- * @author Twenty Codes, LLC
+ * DirectionsAdapter.java
* @author ricky barrette
* @date Sep 22, 2010
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.fragments;
diff --git a/LocationLib/src/com/TwentyCodes/android/fragments/DirectionsListFragment.java b/LocationLib/src/com/TwentyCodes/android/fragments/DirectionsListFragment.java
index c7cae92..beb234c 100644
--- a/LocationLib/src/com/TwentyCodes/android/fragments/DirectionsListFragment.java
+++ b/LocationLib/src/com/TwentyCodes/android/fragments/DirectionsListFragment.java
@@ -2,7 +2,20 @@
* DirectionsListFragment.java
* @date Nov 25, 2011
* @author ricky barrette
- * @author Twenty Codes, LLC
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.fragments;
diff --git a/LocationLib/src/com/TwentyCodes/android/fragments/UserOverlayMapFragment.java b/LocationLib/src/com/TwentyCodes/android/fragments/UserOverlayMapFragment.java
index 253dc7e..f36eae2 100644
--- a/LocationLib/src/com/TwentyCodes/android/fragments/UserOverlayMapFragment.java
+++ b/LocationLib/src/com/TwentyCodes/android/fragments/UserOverlayMapFragment.java
@@ -2,7 +2,20 @@
* UserOverlayMapFragment.java
* @date Jan 12, 2012
* @author ricky barrette
- * @author Twenty Codes, LLC
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.fragments;
diff --git a/LocationLib/src/com/TwentyCodes/android/location/AndroidGPS.java b/LocationLib/src/com/TwentyCodes/android/location/AndroidGPS.java
index 4741aad..ee200a0 100644
--- a/LocationLib/src/com/TwentyCodes/android/location/AndroidGPS.java
+++ b/LocationLib/src/com/TwentyCodes/android/location/AndroidGPS.java
@@ -1,9 +1,21 @@
/**
-
* AndroidGPS.java
* @date Feb 3, 2011
* @author ricky barrette
- * @author Twenty Codes, LLC
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.location;
diff --git a/LocationLib/src/com/TwentyCodes/android/location/BaseLocationReceiver.java b/LocationLib/src/com/TwentyCodes/android/location/BaseLocationReceiver.java
index 2251a01..e521c8a 100644
--- a/LocationLib/src/com/TwentyCodes/android/location/BaseLocationReceiver.java
+++ b/LocationLib/src/com/TwentyCodes/android/location/BaseLocationReceiver.java
@@ -1,7 +1,21 @@
/**
- * @author Twenty Codes, LLC
+ * BaseLocationReceiver.java
* @author ricky barrette
* @date Oct 18, 2010
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.location;
diff --git a/LocationLib/src/com/TwentyCodes/android/location/CompassSensor.java b/LocationLib/src/com/TwentyCodes/android/location/CompassSensor.java
index 5b65ae4..6dd3eab 100644
--- a/LocationLib/src/com/TwentyCodes/android/location/CompassSensor.java
+++ b/LocationLib/src/com/TwentyCodes/android/location/CompassSensor.java
@@ -2,7 +2,20 @@
* CompassSensor.java
* @date Mar 2, 2011
* @author ricky barrette
- * @author Twenty Codes, LLC
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.location;
diff --git a/LocationLib/src/com/TwentyCodes/android/location/GeoPointLocationListener.java b/LocationLib/src/com/TwentyCodes/android/location/GeoPointLocationListener.java
index 1c1cf03..f432ae5 100644
--- a/LocationLib/src/com/TwentyCodes/android/location/GeoPointLocationListener.java
+++ b/LocationLib/src/com/TwentyCodes/android/location/GeoPointLocationListener.java
@@ -1,7 +1,21 @@
/**
- * @author Twenty Codes, LLC
+ * GeoPointLocationListener.java
* @author ricky barrette
* @date Oct 2, 2010
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.location;
diff --git a/LocationLib/src/com/TwentyCodes/android/location/GeoUtils.java b/LocationLib/src/com/TwentyCodes/android/location/GeoUtils.java
index 3434ace..b94efa8 100644
--- a/LocationLib/src/com/TwentyCodes/android/location/GeoUtils.java
+++ b/LocationLib/src/com/TwentyCodes/android/location/GeoUtils.java
@@ -1,22 +1,23 @@
/**
- * @author Twenty Codes, LLC
+ * GeoUtils.java
* @author Google Inc.
* @author ricky barrette
* @date Oct 2, 2010
*
- * Some Code here is Copyright (C) 2008 Google Inc.
- *
+ * Copyright 2008 Google Inc.
+ * Copyright 2012 Richard Barrette
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.location;
diff --git a/LocationLib/src/com/TwentyCodes/android/location/LocationService.java b/LocationLib/src/com/TwentyCodes/android/location/LocationService.java
index 1893d94..c039764 100644
--- a/LocationLib/src/com/TwentyCodes/android/location/LocationService.java
+++ b/LocationLib/src/com/TwentyCodes/android/location/LocationService.java
@@ -1,7 +1,21 @@
/**
- * @author Twenty Codes, LLC
+ * LocationService.java
* @author ricky barrette
* @date Oct 28, 2010
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.location;
@@ -203,12 +217,12 @@ public class LocationService extends Service implements LocationListener {
* @author ricky barrette
*/
private void parseIntent(final Intent intent) {
- if(intent == null){
+ if (intent == null) {
this.stopSelf(mStartId);
Log.e(TAG, "LocationService intent was null, stopping selft: " + mStartId);
} else {
mIntent = intent;
-
+
if (intent.hasExtra(LocationLibraryConstants.INTENT_EXTRA_REQUIRED_ACCURACY))
mRequiredAccuracy = intent.getIntExtra(LocationLibraryConstants.INTENT_EXTRA_REQUIRED_ACCURACY, LocationLibraryConstants.MINIMUM_REQUIRED_ACCURACY);
}
diff --git a/LocationLib/src/com/TwentyCodes/android/location/MapView.java b/LocationLib/src/com/TwentyCodes/android/location/MapView.java
index be86bdf..ced3f0a 100644
--- a/LocationLib/src/com/TwentyCodes/android/location/MapView.java
+++ b/LocationLib/src/com/TwentyCodes/android/location/MapView.java
@@ -1,7 +1,21 @@
/**
- * @author Twenty Codes, LLC
+ * MapView.java
* @author ricky barrette
* @date Oct 10, 2010
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.location;
diff --git a/LocationLib/src/com/TwentyCodes/android/location/MidPoint.java b/LocationLib/src/com/TwentyCodes/android/location/MidPoint.java
index d1c5682..a28b3a5 100644
--- a/LocationLib/src/com/TwentyCodes/android/location/MidPoint.java
+++ b/LocationLib/src/com/TwentyCodes/android/location/MidPoint.java
@@ -1,7 +1,21 @@
/**
- * @author Twenty Codes, LLC
+ * MidPoint.java
* @author ricky barrette
* @date Nov 30, 2010
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.location;
diff --git a/LocationLib/src/com/TwentyCodes/android/location/OnLocationSelectedListener.java b/LocationLib/src/com/TwentyCodes/android/location/OnLocationSelectedListener.java
index b4da14e..dcde417 100644
--- a/LocationLib/src/com/TwentyCodes/android/location/OnLocationSelectedListener.java
+++ b/LocationLib/src/com/TwentyCodes/android/location/OnLocationSelectedListener.java
@@ -1,3 +1,22 @@
+/**
+ * OnLocationSelectedListener.java
+ * @author ricky barrette
+ *
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
+ */
package com.TwentyCodes.android.location;
import com.google.android.maps.GeoPoint;
diff --git a/LocationLib/src/com/TwentyCodes/android/location/PassiveLocationListener.java b/LocationLib/src/com/TwentyCodes/android/location/PassiveLocationListener.java
index 0c0fb15..4a36ede 100644
--- a/LocationLib/src/com/TwentyCodes/android/location/PassiveLocationListener.java
+++ b/LocationLib/src/com/TwentyCodes/android/location/PassiveLocationListener.java
@@ -2,7 +2,20 @@
* PassiveLocationListener.java
* @date May 15, 2012
* @author ricky barrette
- * @author Twenty Codes, LLC
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.location;
diff --git a/LocationLib/src/com/TwentyCodes/android/location/ReverseGeocoder.java b/LocationLib/src/com/TwentyCodes/android/location/ReverseGeocoder.java
index bfa0004..5ec1bfa 100644
--- a/LocationLib/src/com/TwentyCodes/android/location/ReverseGeocoder.java
+++ b/LocationLib/src/com/TwentyCodes/android/location/ReverseGeocoder.java
@@ -2,7 +2,20 @@
* ReverseGeocoder.java
* @date Jan 31, 2011
* @author ricky barrette
- * @author Twenty Codes, LLC
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.location;
diff --git a/LocationLib/src/com/TwentyCodes/android/overlays/BaseUserOverlay.java b/LocationLib/src/com/TwentyCodes/android/overlays/BaseUserOverlay.java
index 8c9015b..e35bfc1 100644
--- a/LocationLib/src/com/TwentyCodes/android/overlays/BaseUserOverlay.java
+++ b/LocationLib/src/com/TwentyCodes/android/overlays/BaseUserOverlay.java
@@ -2,7 +2,20 @@
* UserOverlayBase.java
* @date Jan 12, 2012
* @author ricky barrette
- * @author Twenty Codes, LLC
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.overlays;
diff --git a/LocationLib/src/com/TwentyCodes/android/overlays/CompasOverlay.java b/LocationLib/src/com/TwentyCodes/android/overlays/CompasOverlay.java
index b8de032..ea8c1d1 100644
--- a/LocationLib/src/com/TwentyCodes/android/overlays/CompasOverlay.java
+++ b/LocationLib/src/com/TwentyCodes/android/overlays/CompasOverlay.java
@@ -2,7 +2,20 @@
* CompasOverlay.java
* @date Mar 9, 2011
* @author ricky barrette
- * @author Twenty Codes, LLC
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.overlays;
diff --git a/LocationLib/src/com/TwentyCodes/android/overlays/DirectionsOverlay.java b/LocationLib/src/com/TwentyCodes/android/overlays/DirectionsOverlay.java
index 644b430..434e230 100644
--- a/LocationLib/src/com/TwentyCodes/android/overlays/DirectionsOverlay.java
+++ b/LocationLib/src/com/TwentyCodes/android/overlays/DirectionsOverlay.java
@@ -2,7 +2,20 @@
* DirectionsOverlay.java
* @date Nov 10, 2011
* @author ricky barrette
- * @author Twenty Codes, LLC
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.overlays;
diff --git a/LocationLib/src/com/TwentyCodes/android/overlays/PathOverlay.java b/LocationLib/src/com/TwentyCodes/android/overlays/PathOverlay.java
index 5a401ff..c26842b 100644
--- a/LocationLib/src/com/TwentyCodes/android/overlays/PathOverlay.java
+++ b/LocationLib/src/com/TwentyCodes/android/overlays/PathOverlay.java
@@ -2,7 +2,20 @@
* PathOverlay.java
* @date Nov 11, 2011
* @author ricky barrette
- * @author Twenty Codes, LLC
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.overlays;
diff --git a/LocationLib/src/com/TwentyCodes/android/overlays/RadiusOverlay.java b/LocationLib/src/com/TwentyCodes/android/overlays/RadiusOverlay.java
index c73c378..dee412f 100644
--- a/LocationLib/src/com/TwentyCodes/android/overlays/RadiusOverlay.java
+++ b/LocationLib/src/com/TwentyCodes/android/overlays/RadiusOverlay.java
@@ -1,6 +1,20 @@
/**
- * @author Twenty Codes
+ * RadiusOverlay.java
* @author ricky barrette
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.overlays;
diff --git a/LocationLib/src/com/TwentyCodes/android/overlays/UserOverlay.java b/LocationLib/src/com/TwentyCodes/android/overlays/UserOverlay.java
index 3d3e7c0..5a34afe 100644
--- a/LocationLib/src/com/TwentyCodes/android/overlays/UserOverlay.java
+++ b/LocationLib/src/com/TwentyCodes/android/overlays/UserOverlay.java
@@ -1,7 +1,21 @@
/**
- * @author Twenty Codes, LLC
+ * UserOverlay.java
* @author ricky barrette
* @date Dec 28, 2010
+ *
+ * Copyright 2012 Richard Barrette
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
*/
package com.TwentyCodes.android.overlays;