Commit Graph

156 Commits

Author SHA1 Message Date
youtaol 4cf647b02c Add raw calories feature. Add calories column in Track table. Add calories field and raw logic to calculate calories in TripStatistics. Display a raw calories text in Stats Fragment. 2013-08-15 20:19:36 +08:00
youtaol 75ac35bf53 Add unit test about CalorieUtils.java. And change the visiability of some methods to make them testable. 2013-08-15 10:16:27 +08:00
youtaol d64b6a4d93 Merge heads 2013-08-15 09:46:14 +08:00
youtaol 4d8c44782e Change code style. 2013-08-15 09:45:26 +08:00
Jimmy Shih 24a343661d Add page viewer for marker detail page 2013-08-14 13:06:39 -07:00
youtaol 863f1373e4 Rename CaloricExpenditureComputation.java to CalorieUtils.java. Change code style. 2013-08-13 15:38:03 +08:00
Jimmy Shih aed601fcda merge heads 2013-08-12 14:45:00 -07:00
Jimmy Shih 8f35da9576 display photos in marker list 2013-08-07 18:38:00 -07:00
youtaol 1d5d91c2bf Add utils to calculate caloric expenditure. 2013-08-07 16:09:30 +08:00
Jimmy Shih ba859b64e3 Fix two bugs.
- reload waypoint in MarkerDetailActivity onResume
- In list item, if time/distance field is not available, use INVISIBLE rather than GONE.
2013-08-06 13:55:16 -07:00
Jimmy Shih 517b792e43 Add feature to insert a photo marker 2013-08-06 12:55:02 -07:00
Jimmy Shih c555c201d6 Revert to original algorithm to calculate grade
Always use smoothed speed.
2013-07-23 12:31:30 -07:00
Jimmy Shih 928c62a237 Update elevation min,max and speed min,max after buffer is full 2013-07-23 10:21:39 -07:00
Jimmy Shih ab4ed7ed9f Bug fixes: update menu after starting/stopping gps - to handle ICS phones of updating menu immediately after invalidating it 2013-07-16 10:45:52 -07:00
Jimmy Shih d701ee81ba Bug fix: use a different request code for google play services 2013-07-15 15:23:48 -07:00
Jimmy Shih 64018fb02c Handle the case that sync is active while deleting all tracks 2013-07-12 14:26:09 -07:00
Jimmy Shih a6e9412a69 Record idle location to support zero speed when idle 2013-07-12 13:21:19 -07:00
Jimmy Shih 8ba5980009 Code cleanup: reorg methods in TripStatistics 2013-07-11 17:06:14 -07:00
Jimmy Shih e7e671c1ff Check if location speed and accuracy are available. 2013-07-11 14:38:09 -07:00
Jimmy Shih 4b6c9a875b Improve elevation and grade calculation to take into account locations without altitude. 2013-07-11 13:53:34 -07:00
Jimmy Shih 9b0c14c9c7 In Stats view, only show speed and elevation when they are available. 2013-07-11 09:51:54 -07:00
Jimmy Shih e30d816765 Export altitude only when it is defined 2013-07-10 12:37:14 -07:00
Jimmy Shih 7deb589a75 Bug fix, reload cursor loader after deleting a track 2013-07-10 12:24:40 -07:00
Jimmy Shih 8bd5818a81 Support importing gpx and kml without altitude value. 2013-07-10 11:16:56 -07:00
Jimmy Shih 5a4860a45a Add onPrepareOptionMenu to update menu state. 2013-07-09 15:54:32 -07:00
Jimmy Shih e67bb581e6 Change defaut recording distance interval to 10m 2013-07-09 14:43:49 -07:00
Jimmy Shih 89b1c6debe Chagne gps accuracy default tp 50m 2013-07-09 14:12:52 -07:00
Jimmy Shih 1ddb53ad47 Code cleanup: add ic_ prefix to icons 2013-07-09 11:53:25 -07:00
Jimmy Shih ae456a498e Code cleanup: add ic_ prefix to track icons 2013-07-09 11:12:13 -07:00
Jimmy Shih 834b0465fe Code cleanup: add ic_launcher, ic_tab, ic_stat_notify prefix 2013-07-08 18:37:37 -07:00
Jimmy Shih d50d9b6ef2 code cleanup: prefix menu icon with ic_menu 2013-07-08 18:14:39 -07:00
Jimmy Shih 45e5813f15 Set default units to imperial if in US 2013-07-08 13:15:46 -07:00
Jimmy Shih 876606df82 add ic_dialog_success.png 2013-07-08 12:32:46 -07:00
Jimmy Shih 1de84fa3da Update send to google result dialog. 2013-07-03 15:08:45 -07:00
Jimmy Shih a774693135 Fix updating list item background color 2013-07-03 13:24:05 -07:00
Jimmy Shih db8d767ca1 Update icons. 2013-07-02 11:11:39 -07:00
Jimmy Shih ad8349b2b4 Code cleanup: move analytics constants to AnalyticsUtils 2013-06-28 13:18:37 -07:00
Jimmy Shih c8c00f8391 Use ApiAdapter.invalidateMenu to refresh the action bar menu. 2013-06-25 16:42:55 -07:00
Jimmy Shih f1b3a1495d Fix froyo but where Bitmap.getConfig can return null 2013-06-25 14:04:48 -07:00
Jimmy Shih d343fd24ff Add orange style for EditText, ListSelector, PogressBar, and Checkbox. 2013-06-25 13:50:14 -07:00
Jimmy Shih 5efada2a6e Cleanup, rename string variables 2013-06-25 09:56:01 -07:00
Jimmy Shih 1f41fefa09 Use a async task to delete tracks and show a progress dialog. 2013-06-24 18:15:26 -07:00
Jimmy Shih e7c1687565 Code cleanup: save a save_all option to SaveActivity. 2013-06-24 17:18:58 -07:00
Jimmy Shih 60ce1916f6 Code cleanup: move request code to AbstractSendToGoogleActivity 2013-06-24 16:46:42 -07:00
Jimmy Shih d8e0d4ab73 Code cleanup: Cleanup method order in AbstractSendToGoogleActivity. 2013-06-24 14:37:31 -07:00
Jimmy Shih 2d4cabf4ef Add menu option to Sync to Google Drive. 2013-06-24 14:09:25 -07:00
Jimmy Shih 176b2b05d3 Code cleanup. In SendRequest, rename to driveSync. 2013-06-24 11:03:12 -07:00
Jimmy Shih 27cea61edb Code cleanup: rename to ConfirmSyncDialogFragment 2013-06-24 10:57:29 -07:00
Jimmy Shih ced42e3d86 Update confirmation messages 2013-06-21 18:13:01 -07:00
Jimmy Shih 85eba36d4c Remove confirmation dialog when sharing via Google Drive. 2013-06-21 17:58:15 -07:00