Commit Graph

56 Commits

Author SHA1 Message Date
6fcc65a605 Cleaned up some code in the Location service and android gps classes 2012-07-21 22:38:38 -04:00
1bc12ce660 Updated compat library to r9
closes #126
2012-07-19 09:27:46 -04:00
d0bd334571 replaced broken compat library with working r7 2012-07-17 12:30:43 -04:00
39cc29a4c5 Updated Compat library and cleaned up code
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-07-01 11:19:46 -04:00
2abc43c3bf Added a static update interval fail safe set of 15 minutes
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-06-21 10:03:06 -04:00
d53fe7bdd5 I have moved all static keys from individual service classes to
LocationLibraryConstants

closes #112

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-06-21 09:33:30 -04:00
2a30cca952 Fixed some lint errors
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-06-03 11:36:00 -04:00
4f1ff722ae Fixed various lint issues
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-06-02 17:05:34 -04:00
b211c3d829 Added a null check on mIntent before trying to access it's information
closes #87

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-05-29 16:48:14 -04:00
b34bf29302 Added null check for mListener in SkyHook.java
closes #66

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-05-22 15:49:58 -04:00
76f2c37c76 Merge branch 'feature/#53' 2012-05-16 10:47:05 -04:00
fa9985aed5 Cleaned Up code related to broadcasting and receving locations updates
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-05-16 10:41:53 -04:00
ff27eb8ae3 Initial commit of the passive location listener
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-05-15 10:39:00 -04:00
5ba3f55eda Added some convenice methods to BaseMapFragment
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-05-10 13:04:21 -04:00
c5570b4aa4 Moved mListener.onFirstFix() call in AndroidGPS.onLocationChanged()
Moved mListener.onFirstFix() call to be within the null check block for
mListener

closes #39

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-05-06 00:49:41 -04:00
d8159587a5 Added first fix tracking to AndroidGPS and SkyHook
This should prevent any mix ups about first fix.

closes #34

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-05-02 11:33:01 -04:00
46ab711e41 Upadted Android Compatibility Lib + Google Maps Hack
from v4 r6 to v4 v7

closes #33

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-05-02 10:58:42 -04:00
9941e0cfe7 Set map api to production
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-22 10:34:41 -04:00
5daf9b5d67 Updated build paths to be ADt 17 compliant and fixed lint errors
Change-Id: Icea95702018f18d0380ce30b512f94e64975ca3f
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-31 12:36:38 -04:00
55af1854c8 Moved OnDirectionsSelected Listener into DirectionsListFragment
Change-Id: Ie54e5e394a707a1911eaa408883d4220697f21fb
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-15 10:10:07 -04:00
15f40387eb Updated SkyHook field variable
Change-Id: Ic955feff5c651ba443fcb8d58f2acb68a2364151
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-14 11:13:14 -04:00
00e74337a6 Reduced compass update interval
Change-Id: I232eb144bea2139a11b7fa8aaee9375d843c14d8
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-14 11:12:47 -04:00
eaf205c865 Moved CompassListener into CompassSensor.java
Change-Id: Id6b1453eff3671b1d59d075c4da8ada6827e2bdd
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-14 11:11:37 -04:00
f2940419bb Added proper compensation for device rotations.
this change will allow devices with diffrent default orentations to use
the compass more accuractly.
tested on a nexus s (portrait) and asus transformer (landscsape) 

Change-Id: I2ca9a9f2f122ca3bceb20f91087d8aaaae394519
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-14 11:05:10 -04:00
4c4986ea61 Refactored and updated omst variables to final
UserOverlay base is now BaseUserOverlay
MapFragmentBase is now BaseMapFragment

Change-Id: Icbe234964f9b8ad511f17f6d22bca1a677d4189b
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-13 12:32:33 -04:00
24d820cada Updated CompassSensor to compensate for geomag declination
Change-Id: I82b421fc5d62fafa1bf6634430f76966025d6b46
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-11 23:45:55 -04:00
86d34b501f Added getDestination() calls to retrive destination point from
CompassOverlay

Change-Id: I98a1d3f585a21faa5966c9718b84c75e94a84d24
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-11 18:11:57 -04:00
411cba9d00 CompassSensor.java Readded my orginal compensation of for device
rotations

Change-Id: Icd748b30d25219d061bae5564b86b7c098bfea4b
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-11 14:24:04 -04:00
0c995e02d3 Added getters for PathOverlay points, refactored DirectionsOverlay
Change-Id: Ia46352151dad96ae30c427d7776614555913c48b
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-10 09:46:11 -05:00
54de0d8060 Updated the compass to compensate for device rotation
Change-Id: I67640254a4c454a42719c99b5720e56b77eaf137
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-10 09:44:27 -05:00
e0c7df5ea6 Decreased user arrow animation by 2 seconds
Change-Id: I705e09eee3bcccf77c44a28223fa3fdd18f61b6b
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-09 10:52:17 -05:00
9e244ee772 Added a progress circle to the mapfragment
the progress circle will be used to indicate that there is work being
done in the background

Change-Id: Id2929f5be68fce0d223e18d8dd07babfcdb37a34
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-08 09:59:32 -05:00
c4a4938e2b Cleaned up imports
Change-Id: I9638fdd46fa44e451f166c48495395406f00c15e
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-05 11:46:13 -05:00
674da044c6 Commented out debugging System.out.print call in CompassSensor.130
Change-Id: I2b48c98d8bfa9d8faa6afbe2f99d878847793095
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-05 11:02:11 -05:00
449c97a384 Added method GeoUtils.distanceToString()
I moved this method from FMC

Change-Id: I61ff03c3e69a32cabb1999cb858b139990f2f835
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-05 10:49:45 -05:00
3610660a56 Converted PoathOverlay into an imutable object
Change-Id: I4c2aebe2a734560e4178e0ef789de815927afada
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-05 10:39:07 -05:00
e1e1bea1ef Refactored the entire library
I also moved the directions listfragment, overlay, and other required
classes from FMC into the library

Change-Id: Iba27e29d89e864dbeca3a2670aed552a8be4f2b8
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-05 08:28:47 -05:00
2d53cf69cb removed synchronation
from the animation thread's abort()

Change-Id: I27488739805eda2422c87173b8d65d2680742958
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-04 14:55:13 -05:00
184552932e Updated Map based classes
updated map_fragment.xml to TC release api key

updated MidPoint to be final

updated UserOverlayBase to synchronize the animation thread abort
method, and made mUserArrow volatile

Change-Id: Ie79d2c8edb08b7cfdbd130a63e34d0e9ce62eb0e
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-04 14:03:04 -05:00
066a17a0a1 Updated Midpoint tp be inmutible
Change-Id: I938232ba7b49b84ae133cbdb2b9d42a12ebfb9c1
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-03 11:28:58 -05:00
7dff00f5b0 Removed Tracking for locationlib.jar
Change-Id: Id942e727d03d3479904371ffe04784ae05d3bff3
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-01 13:51:26 -05:00
a1c52bfa08 Updated Skyhook library
Change-Id: Ida6a8c9cb30fdb503a2bea1bee409dceafc72683
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-02-21 10:35:58 -05:00
a11a6801d5 UserOverlayBase.java
updated AnimationThread to make the animation more smooth
2012-01-18 16:22:49 +00:00
f4ee1f1898 UserOverlayBase.java
removed the synchronized modifier from AnimationThread.abort() the prevent ANR's
2012-01-18 16:10:39 +00:00
c3d155500a UserOverlayBase.java fixed animation thread break condition to check of isAborted rather than !isAborted 2012-01-13 05:51:24 +00:00
fdc21f6afe MapFragmentBase.java
added convince methods

UserOverlayBase.java
added convince methods

UserOverlayMapFragment.java
added convince methods

SkyHoookUserOverlayMapFragment.java
added convince methods
2012-01-12 17:10:04 +00:00
51e03d9d9d updated the manifest to reflect com.TwentyCodes.android.location as the main package
Created the abstract class MapFragmentBase.java to be used as a template for creating new mapfragments.

Created UserOverlayMapFragment.java & SkyHookUserOverlayMapFragment.java. these two mapfragments each maintain the mapview and its respected user overlay, allowing for simpler implmention
2012-01-12 15:20:42 +00:00
1a858f1335 Created abstract class UserOverlayBase.java to replace most of the code that is redundant in UserOverlay.java ands SkyHookUserOverlay.java. This will make it easyer to update the UserOverlays across the board 2012-01-12 14:29:41 +00:00
5cf1e61c6c added compass drawables to the lib
CompasOverlay.java
updated all methods that set mX and mY to use dip instead of px
updated default drawables to compass_sm.png and needle_sm.png

added RadiusOverlay.java and LocationSelectedListener.java to the library
2012-01-12 13:30:48 +00:00
d2d643afe6 added compass drawables to the lib
CompasOverlay.java
updated all methods that set mX and mY to use dip instead of px
updated default drawables to compass_sm.png and needle_sm.png

added RadiusOverlay.java and LocationSelectedListener.java to the library
2012-01-08 14:35:25 +00:00