Compare commits

...

201 Commits

Author SHA1 Message Date
Jimmy Shih ce33a1c413 Update strings for version 56 2012-09-20 17:27:10 -07:00
Jimmy Shih 54589db47c Update Google Analytics to start one session
per app launch.
2012-09-20 13:06:42 -07:00
Jimmy Shih 7e2fa82f3c Fix issue 1153.
In TrackListActivity, unregister listener in onPause.
2012-09-19 17:56:30 -07:00
youtaol 02d9d929b2 Merge heads 2012-09-19 20:22:47 +08:00
youtaol e00b0ef495 Merge heads 2012-09-19 20:06:00 +08:00
youtaol d179997169 Change code style. 2012-09-19 20:05:10 +08:00
youtaol 0b6250686d Change code style to test the voice frequency and split frequency menus. 2012-09-19 18:58:01 +08:00
youtaol ab763a0ce1 Change code style for testing share activities. 2012-09-19 18:38:42 +08:00
Jimmy Shih 95340fc3ad merge heads 2012-09-18 12:52:31 -07:00
Jimmy Shih 5ce40abbba update to version code 55 2012-09-18 12:50:37 -07:00
Jimmy Shih 1a89d9b4ce Fix issue 1152. In API level < 11, hide title before setting the content view. 2012-09-18 12:49:57 -07:00
youtaol df37b7709a Merge heads 2012-09-18 20:47:01 +08:00
youtaol afcccdf9d8 Move testFrequencyMenu from CreateAndSendTrackTest to MenuItemsTest and make some change as the new UI. 2012-09-18 20:46:11 +08:00
youtaol aa693afb88 Merge heads 2012-09-18 11:28:59 +08:00
youtaol 2243f73ef3 Change the method to check view mode. 2012-09-18 11:28:13 +08:00
youtaol 65ee6b80ef Merge heads 2012-09-18 10:32:22 +08:00
youtaol 207cc60911 Make the testShareActivity runs more stable. 2012-09-18 09:48:36 +08:00
Jimmy Shih a9c12e47f2 Update to version 54.
Update strings.
2012-09-17 17:06:05 -07:00
Jimmy Shih 6c985efca2 Fix total time stats when stopping a track during a pause. 2012-09-17 15:23:01 -07:00
Jimmy Shih 65c8a57aa3 Add voice frequency and split frequency back to
the recording settings.
2012-09-17 15:00:14 -07:00
Jimmy Shih 42f1e79bed For description field, allow multi-line. 2012-09-17 14:03:50 -07:00
Jimmy Shih 28599646cc Use a Chronometer to update total time in track widget.
Use broadcast events to update track widget.
2012-09-17 13:45:53 -07:00
youtaol 785bb71d4f Merge heads 2012-09-17 10:24:33 +08:00
youtaol bdba53c6ca Fix an error of comment. 2012-09-17 10:24:12 +08:00
Jimmy Shih 451ac53551 Fix issue 1108 by not always updating shared preferences onResume. 2012-09-14 10:46:09 -07:00
Jimmy Shih 3e03f24ec3 Fix issue with Android 3.0 by obtaining the action bar after
setting the content view.
See issue 1107.
2012-09-14 10:27:32 -07:00
Jimmy Shih 260410b554 For FragmentDialog, always use the activity obtain during onCreate.
To prevent null pointer when user clicks a button.
2012-09-13 15:44:58 -07:00
Jimmy Shih 5ff9c157d6 On TabManager, use commitAllowingStateLoss 2012-09-13 15:05:24 -07:00
Jimmy Shih 26512da615 Code cleanup: rename keys for save instance state 2012-09-13 14:52:51 -07:00
Jimmy Shih 5e7966b6e0 In ChooseActivityDialogFragment, reuse the activity during onCreateDialog. 2012-09-13 14:45:03 -07:00
Jimmy Shih 555218b2ab Do no allow progress dialogs to be canceled on outside touch 2012-09-13 14:25:55 -07:00
Jimmy Shih 74cf36e607 Add a menu item to start/stop gps. 2012-09-13 13:54:06 -07:00
youtaol 6389b873cf Merge heads 2012-09-13 11:32:20 +08:00
Jimmy Shih a177834e07 When backing/restoring prefereneces, do not include preferences for
the current device session.
2012-09-12 12:33:47 -07:00
youtaol 6f862a09d9 Add a test about share menu item. 2012-09-12 19:56:19 +08:00
Jimmy Shih 2053fe7bb9 update to version 53 2012-09-11 16:46:59 -07:00
Jimmy Shih ef1964eeff fix eclipse warnings 2012-09-11 16:03:39 -07:00
Jimmy Shih c9d4a07756 fix lint errors 2012-09-11 15:52:55 -07:00
Jimmy Shih 0ef7713433 Make SharePreferenceListener instance variables so they do not get
garbage collected early.
2012-09-11 14:56:17 -07:00
Jimmy Shih 32da1cd84d merge heads 2012-09-11 13:34:14 -07:00
Jimmy Shih 2ee3592320 update Android Manifest to version 52 2012-09-11 13:33:35 -07:00
Jimmy Shih b6d0609bed When gps is disabled, clear the current location. 2012-09-11 13:29:23 -07:00
Jimmy Shih 9eba8e4b64 update translated strings 2012-09-07 11:11:47 -07:00
Jimmy Shih 1e3e6af9b9 merge heads 2012-09-07 10:46:57 -07:00
Jimmy Shih 9cbfa40320 When displaying a html anchor link in a TextView, make sure there is
a space before and after the anchor link.
2012-09-07 10:45:12 -07:00
youtaol e0923b6f02 Merge heads 2012-09-07 10:45:01 +08:00
youtaol 3de6db170c Move methods checkUnderRecording, checkUnderRecording, checkUnderPaused to EndToEndTestUtils. 2012-09-07 10:44:13 +08:00
Jimmy Shih 7079c787be Annouce time to always include seconds 2012-09-06 17:06:37 -07:00
Jimmy Shih 147ef4e7c9 Change GpxTrackWriter to output coordinates with 6 fraction digitis 2012-09-06 16:50:05 -07:00
Jimmy Shih d1ea2c2bdb Update translation description regarding newline character \n 2012-09-06 15:56:02 -07:00
Jimmy Shih 0537eb3518 Fix csv output to use "" for an empty string. 2012-09-06 15:37:34 -07:00
Jimmy Shih 868a42f106 Fix buttons so that they can support 2 lines of text. 2012-09-06 14:53:59 -07:00
Jimmy Shih eef7279319 Shorten "Satellite mode" to "Satellite".
Change string limit from 21 to 20.
2012-09-06 13:47:30 -07:00
Jimmy Shih e881af032e Update app widget to support pause/resume. 2012-09-06 11:05:53 -07:00
Jimmy Shih 65fbb30f01 Update the list view icon based on new dimensions
from the style guide.
2012-09-05 13:47:40 -07:00
Jimmy Shih 6f97d4ff15 In ListView item, change the "Paused" text to white color instead of
red color.
2012-09-05 13:25:51 -07:00
Jimmy Shih e2610df8aa merge heads 2012-09-05 13:06:31 -07:00
Jimmy Shih 6df00ac1c5 Update record/pause style. 2012-09-05 13:05:12 -07:00
youtaol c5c5620b79 Fix warnings in test project. 2012-09-05 14:22:27 +08:00
youtaol 9a10675441 Add checks about the switch of start and pause image button. 2012-09-05 14:15:47 +08:00
youtaol 2eb26aaba1 Change code style. 2012-09-05 14:11:05 +08:00
Jimmy Shih 89496446c1 In StatsFragment, use the handler thread to update the total time
instead of creating a new thread.
2012-09-04 13:14:31 -07:00
Jimmy Shih 72a6f31790 Remove the following strings and drawables
- menu_record_track
- menu_pause_track
- menu_stop_track

Update status and button images.
2012-09-04 11:21:47 -07:00
youtaol 7b025443c1 Add checks about the status of recording, pause and not in recording. Add method findTextView and sleep to help current and following tests. 2012-09-04 15:04:11 +08:00
youtaol 9505ba9a23 Change code for there are no start, pause, stop buttons on the action bar any more. 2012-09-03 20:02:12 +08:00
youtaol e5078627c1 Merge heads 2012-09-03 14:17:09 +08:00
youtaol 3b92eb3a23 Change code style. 2012-09-03 14:15:22 +08:00
Jimmy Shih 9e85c0b8d5 Change the track_detail menu item order.
Place voice frequency and split markers just above settings.
2012-08-31 15:44:23 -07:00
Jimmy Shih af4a24053b merge conflicts, update ids 2012-08-31 15:08:39 -07:00
Jimmy Shih 544eb798b0 merge heads 2012-08-31 14:52:58 -07:00
Jimmy Shih b7c2f85a02 Add TrackController UI in TrackDetailActivity. 2012-08-31 14:51:05 -07:00
youtaol c8bcfe654b Add method pauseRecording() and resumeRecording() in EndToEndTestUtils. Make some changes to make start, pause, resume, stop track recording can runs well on the new UI(Move these buttons down from action bar in TrackListActivity). 2012-08-31 17:08:41 +08:00
youtaol 90e621db1f Merge heads 2012-08-31 09:57:35 +08:00
youtaol da6f3da448 Change the code style to send Gps signal to emulator. 2012-08-31 09:54:45 +08:00
Jimmy Shih 8a7786f9ca In TrackWriterImpl, write an empty track if the track has no valid locations. 2012-08-30 16:12:31 -07:00
Jimmy Shih af32c4f40f Improve resume/pause layout 2012-08-30 14:57:01 -07:00
Jimmy Shih 378cae7151 In MarkerList, do not show insert waypoint if paused.
In SearchList, update icon based on recording or paused state.
In TrackDetail, do not show insert waypoint if paused.
In TrackDetail, always show voice frequency and split marker settings.
2012-08-30 13:21:46 -07:00
Jimmy Shih 3b83d12056 merge heads 2012-08-30 12:32:01 -07:00
Jimmy Shih 5d34ddbd13 Change target sdk version to 16. 2012-08-30 12:31:16 -07:00
Jimmy Shih 9c0e522804 merge heads 2012-08-30 11:25:09 -07:00
Jimmy Shih 59f2092482 Check in the new record/pause UI in TrackListActivity. 2012-08-30 11:21:56 -07:00
youtaol ac119d815c Merge heads 2012-08-29 17:16:16 +08:00
youtaol 2212abe3c7 Add a check about the points of Paused track. 2012-08-29 17:15:55 +08:00
Jimmy Shih 09453d13cd If a GPX file doesn't contain timestamp, use the import
time as the track starting time.
2012-08-28 18:24:33 -07:00
Jimmy Shih 2f6e36a8bc Update GpxImporter to support tracks with pauses. 2012-08-28 17:44:40 -07:00
youtaol df06149c6d Add test case about sending a paused track to Google. 2012-08-28 15:37:57 +08:00
youtaol 14ea38da8b Merge heads 2012-08-28 10:41:34 +08:00
youtaol 6a9fa7c488 Add pause, resume, export and import test cases for Pause feature. 2012-08-28 10:36:04 +08:00
Jimmy Shih 34889bc460 Update SendToGoogleUtil to take into account of pause/resume separator. 2012-08-27 15:27:56 -07:00
Jimmy Shih f89433322b merge heads 2012-08-27 12:18:08 -07:00
Jimmy Shih 25778911c9 For periodic task, set the next time based on current total time
rather than track start time. The current total time would
take into account pause/resume time.
2012-08-27 12:17:23 -07:00
youtaol 631bfe8302 Fix an error of test. 2012-08-27 20:21:27 +08:00
youtaol 9565e81dab Merge heads 2012-08-27 10:31:25 +08:00
Jimmy Shih 296cd81167 In TrackRecordingService, fix the code on detecting if a location
is already inserted in the database.
In TripStatisticsUpdater, improve total distance accuracy by
taking into account the last point in a segment.
2012-08-24 17:46:16 -07:00
Jimmy Shih 41278eb137 Rename TripStatisticsBuilder to TripStatisticsUpdater.
No logic change.
2012-08-24 15:57:27 -07:00
Jimmy Shih be6fd6d633 Rename methods in MyTracksProviderUtils.
No logic change
2012-08-24 15:21:39 -07:00
Jimmy Shih 784ce8bc26 Remove unused methods in MyTracksProviderUtils
Change getLastValidLocation to getLastValidTrackLocation, thus
all location related api takes trackId as an argument.
2012-08-24 14:05:50 -07:00
Jimmy Shih c6861d1e49 In ChartFragment, MapFragment, StatsFragment, for callbacks from
TrackDataHub, check that the fragment is resumed.
In any runnable executed on the UI thread, also check
that the fragment is resumed.
2012-08-24 12:46:11 -07:00
Jimmy Shih 2c87df6d75 merge heads 2012-08-24 09:46:37 -07:00
youtaol 3ef2a9c901 Fix an error when test in Chinese. 2012-08-24 14:51:24 +08:00
youtaol 9859e4ff14 Merge heads 2012-08-24 12:42:57 +08:00
youtaol bc37316fa5 Add pause test case in CreateAndSendTrackTest. 2012-08-24 12:42:22 +08:00
Jimmy Shih 0ddd11aef5 Fix Stats view.
- when paused, do not update current location
- handle possible null pointer for getActivity

In MyTraksProviderUtils, change to
getLastValidLocation
2012-08-23 18:24:08 -07:00
Jimmy Shih b164398d47 merge heads 2012-08-23 14:59:58 -07:00
Jimmy Shih 9f63125816 - In MapView, only show the no gps message when recording.
- Different messages for no gps signal and need better gps signal.
- Add debug line when location is not inserted due to accuracy issue
  and min recording distance requirement.
2012-08-23 14:58:36 -07:00
Jimmy Shih 02f0f4831e Use TripStatisticsBuilder in
- SendMapsAsyncTask
- SendFusionTablesAsyncTask
- ChartFragment

In ChartURLGenerator
- change the input vector unit to be in meters
2012-08-23 14:12:08 -07:00
youtaol dcf5e5668a Merge heads 2012-08-23 19:28:32 +08:00
youtaol f008975936 Use default(first) account in choose account dialog. 2012-08-23 19:27:51 +08:00
Jimmy Shih 2bfb1ff49e merge heads 2012-08-22 16:20:40 -07:00
Jimmy Shih b0bb09db08 Add support to show both moving time and total time. 2012-08-22 15:52:14 -07:00
Jimmy Shih b3ad974bbb Update the ui thread in StatsFragment to support pause/resume
for the total time.
2012-08-22 13:16:18 -07:00
youtaol 40dba3d183 Add a check when more than one account is bound with phone. 2012-08-22 15:29:03 +08:00
Jimmy Shih ccaf652c8b Add support for pause and resume in TrackRecordingService. 2012-08-21 18:36:04 -07:00
Jimmy Shih 832e2499c9 merge heads 2012-08-20 11:00:16 -07:00
Jimmy Shih 12ce7e3b0d merge heads 2012-08-20 10:59:22 -07:00
Jimmy Shih 883b4bc9a8 fix a typo bug in TrackRecordingServiceConnectionUtils 2012-08-16 14:34:10 -07:00
Jimmy Shih 6039c5e1d4 Add UI support to pause and resume the current recording track. 2012-08-15 17:14:25 -07:00
youtaol e9ac687fe0 Fix unit test error of TrackDataHubTest. 2012-08-15 19:30:12 +08:00
youtaol 302144d003 Move the code about checking status of GPS signal back to make the test runs well on real devices. Fix a warning in CreateAndSendTrackTest. 2012-08-15 15:51:43 +08:00
Jimmy Shih 532c7495e4 merge heads with Google Location settings change from My Tracks 2.0.1 2012-08-14 12:32:56 -07:00
Jimmy Shih 5f4e32b921 Change intent name for opening Google location settings 2012-08-14 10:40:49 -07:00
Jimmy Shih 360b757bf3 revert f505ce7c6bde 2012-08-14 10:04:38 -07:00
Jimmy Shih 1a6baf2beb Refactor location recording logic so that
all location filtering code is done at
TripStatisticsBuilder.java.
2012-08-13 15:14:00 -07:00
Jimmy Shih bafcd0e37f In TrackRecordingService, make sure all fields of a waypoint
are set consistently when creating a marker.
2012-08-09 14:17:19 -07:00
Jimmy Shih 80f2237e2b merge heads 2012-08-09 10:22:52 -07:00
Jimmy Shih 96b67a8f2b Rename files in the "tasks" package. 2012-08-09 10:21:24 -07:00
youtaol f983c93363 Merge heads 2012-08-09 13:32:59 +08:00
Jimmy Shih dc9173e015 Update TrackRecordingService. 2012-08-08 18:52:08 -07:00
Jimmy Shih 40e2aba739 Clean up classes in the stats package
- TripStatisticsBuilder
- TripStatistics
- ExtremityMonitor
- DoubleBuffer
2012-08-08 10:17:32 -07:00
Jimmy Shih a0b3e21b14 Clean up LocationListenerPolicy. 2012-08-07 12:19:59 -07:00
youtaol 61227b2d89 Remove useless method in TrackDataHub. 2012-08-06 14:56:49 +08:00
youtaol 27c796cda0 Change some code of MyTracksProviderTest. 2012-08-06 13:21:51 +08:00
youtaol 86b782e2f0 Change code style of TrackDataHubTest. 2012-08-03 17:05:55 +08:00
youtaol a4b6d9e87b Merge heads 2012-08-03 16:31:36 +08:00
youtaol 221155979e Add a wait after sending Gps Signal. 2012-08-03 15:22:35 +08:00
youtaol e94d62f6a9 Make a change to make testSplitSetting() runs more stable. 2012-08-03 14:24:24 +08:00
Jimmy Shih a9872f665f Add track description as Notes in TCX output. 2012-08-02 12:26:55 -07:00
youtaol 2fa1f6daf4 Change some code in getButtonOnScreen() in EndToEndTestUtils. 2012-08-02 19:53:06 +08:00
youtaol acdb140a4e Make some change to make test more stable. 2012-08-02 16:33:16 +08:00
youtaol 0568ccca2c Make some change to make test more stable. 2012-08-02 14:15:28 +08:00
youtaol d1c2d3df3d Change some code style of EndToEndTestRunner. 2012-08-02 10:49:09 +08:00
Jimmy Shih 371375178e merge heads 2012-08-01 19:03:44 -07:00
Jimmy Shih f0de32eb04 Use a different name for new strings. 2012-08-01 13:40:16 -07:00
Jimmy Shih 2dbd2ff956 My Tracks 2.0.1. Add support for Google location settings. 2012-08-01 12:57:48 -07:00
youtaol 4b7d996cb3 Add some test cases to TrackDataHubTest. 2012-08-01 20:26:02 +08:00
youtaol 8796318335 Add a class EndToEndTestRunner which extends InstrumentationTestRunner and can get the port of emulator. Then test can be run on more than one emulators at the same time. 2012-08-01 17:25:21 +08:00
youtaol 99c094d9a1 Merge heads 2012-08-01 10:12:17 +08:00
youtaol a08cbe4265 Change a field name in EndToEndTestUtils. 2012-08-01 10:11:52 +08:00
Psychol 599b220523 Fix for bug 1087: (Voice Announcements for Pace in min/mi broken).
Voice announcements were always reporting 0 minutes 0 seconds if system was
configured for Pace.  Bug was caused by an incorrect cast of variable
'speed' to long (speed is a double). The casting was resulting in the variable
'speed' being changed to 0.

http://code.google.com/p/mytracks/issues/detail?id=1087
2012-07-30 23:06:33 -05:00
Jimmy Shih cbfcaaeb59 merge heads 2012-07-27 17:10:11 -07:00
Jimmy Shih d32221416d Clean up PeriodicTask. 2012-07-27 17:04:58 -07:00
youtaol b052c34e76 Make test can run on Android 4.1. Initialize the status of GPS signal and then use it during test. Create a common method to enter text which can hides soft keyboard. 2012-07-27 16:51:18 +08:00
youtaol b6fd63a512 Merge heads 2012-07-27 10:24:20 +08:00
youtaol b986dd51a9 Merge heads 2012-07-27 09:46:02 +08:00
youtaol 9244255b86 Change code style of MyTracksProviderUtilsImplTest. 2012-07-27 09:44:18 +08:00
Jimmy Shih 1bcbf7b5de Update all TrackPathPainter and TrackPathDescriptor.
Fix issues of incrementally updating a path.
2012-07-26 15:29:16 -07:00
Jimmy Shih 2b85a0ebba Update MayOverlay.
Fix heading calculation.
2012-07-26 10:05:24 -07:00
youtaol 1f093aa69f Change the code style and fix few invisible warnings in javadoc of MyTracksProviderUtilsImplTest. 2012-07-26 19:59:49 +08:00
youtaol a7d855cc27 Merge heads 2012-07-26 11:00:04 +08:00
Jimmy Shih e50938078f merge heads 2012-07-25 11:10:51 -07:00
youtaol 87255a1ad3 Fix an visible error of test. 2012-07-25 18:55:25 +08:00
youtaol 4dbc9fe682 Merge heads 2012-07-25 18:16:01 +08:00
youtaol 0e8f926769 Fix an error when run testSplitSetting in French. Update the Robotium to latest version. 2012-07-25 18:14:58 +08:00
youtaol 38f317fb35 Add test cases for MyTracksProvider. 2012-07-24 20:00:19 +08:00
youtaol cb8744999b Merge heads 2012-07-24 18:03:09 +08:00
youtaol 737045bdde Add unit test cases about MyTracksProviderUtilsImpl. Change some code style of MyTracksProviderUtilsImplTest. 2012-07-24 18:01:51 +08:00
youtaol 47ba1cbf4b Change some code to make test stable. Add a method in EndToEndTestUtils to hide soft keyboard when input text in edit text. Add method deleteAllTracks() in EndToEndTestUtils. Add 4 fields for different wait time in EndToEndTestUtils. Change method showMoreMenuItem to showMenuItem in EndToEndTestUtils. 2012-07-23 17:56:54 +08:00
youtaol 9d7fbf4956 Merge heads 2012-07-23 11:44:21 +08:00
youtaol d503a0cf66 Revert EndToEndTestUtils.java to aviod a merge confliction and will be recovered by a following change. 2012-07-23 11:38:52 +08:00
Jimmy Shih 9d7d4382fe Create one TrackDataHub per TrackDetailActivity. 2012-07-20 19:02:55 -07:00
Jimmy Shih c03fda24b0 Change TrackDataHub threading model so all requests are
handled in the handler thread.
2012-07-20 18:45:11 -07:00
youtaol b1116ff90b Add some tests to MyTracksProviderUtilsImplTest. 2012-07-20 17:34:29 +08:00
youtaol 27ffabb62a Merge heads 2012-07-20 17:06:17 +08:00
Jimmy Shih 456f62d1a5 Add transaction around insert, delete, and update calls in
MyTracksProvider.java
2012-07-18 10:33:33 -07:00
Jimmy Shih 83082b9ef8 Update TrackRecordingService to use MyTracksProviderUtils. 2012-07-17 17:50:29 -07:00
Jimmy Shih c1dd6eadad Clean up MyTracksProviderUtilsImpl.
Update MyTracks eclipse style.
2012-07-17 16:13:10 -07:00
youtaol 56663c53a4 Change showMoreMenuItem() to showMenuIten() and make the logic to find menu right and clear. Fix issues when run on emulator 2.3.3. 2012-07-17 14:14:19 +08:00
Jimmy Shih 083eb5c351 Clean up the javadoc for MyTracksProviderUtils.java 2012-07-16 18:53:55 -07:00
Jimmy Shih 465b7a66c6 merge heads 2012-07-16 16:38:46 -07:00
youtaol a64a51bc16 Make some change to make tests can run on OS 2.3.3. 2012-07-13 17:26:09 +08:00
youtaol cee6a5bbd0 Add comment about the method showMoreMenuItem() in EndToEndTestUtils.java. Remove android:icon statement in manifest.xml for it causes a error (This error can be reproduced by run aapt dump badging MyTracksTest.apk in command line) when I try to run it on mobile harness (Test devices lab) and it seems work well after I remove it. 2012-07-13 15:29:03 +08:00
Jimmy Shih fd82a4990a Added tag v2.0 for changeset 137da8501655 2012-07-12 13:24:30 -07:00
youtaol a267708ab5 Change some code style. 2012-07-12 12:59:08 +08:00
youtaol be3422cf59 Merge heads 2012-07-12 11:15:34 +08:00
youtaol 9c807697de Merge heads 2012-07-12 11:15:17 +08:00
Jimmy Shih 73d1a07fc1 Clean up TrackDataManager and TrackDataType. 2012-07-11 15:42:36 -07:00
Jimmy Shih e3229dc933 Clean up DataSource, DataSourceManager, and DataSourceListener. 2012-07-11 10:10:42 -07:00
youtaol 257de5a836 Fix some issues of end2end test on real device. Check the status when the device has no GPS signal in testCreateTrackWithMarkers(). Make 4 static fields in EndToEndTestUtils to define different wait time. 2012-07-11 18:49:49 +08:00
youtaol ba83d84fd5 Make the testSplitSetting() can run in 5 languages. 2012-07-10 19:01:45 +08:00
youtaol f4ac6311b0 Merge heads 2012-07-10 17:20:10 +08:00
youtaol 508730e125 Fix error. 2012-07-10 17:19:49 +08:00
youtaol 9e5bd5e379 Change code style of test GoogleUtils and related code. 2012-07-10 17:16:07 +08:00
youtaol 72c75bdf37 Add test method testFrequencyMenu. 2012-07-10 16:40:50 +08:00
youtaol 812ca57d42 Merge heads 2012-07-06 14:41:50 +08:00
youtaol 9a24f12e11 Add test case to check the mark split logic. 2012-07-06 14:41:15 +08:00
youtaol 4cf7c4b32c Provide a way to delete the My Tracks info in the spreadsheet. Remove the method dropMaps() and add a delete flag to searchMapByTitle() method. 2012-07-06 13:50:17 +08:00
youtaol 453dd01928 Add code to drop the maps data, fusion table table of a track after send it Google. Change some code to make end-to-end tests run more stable. 2012-07-05 18:49:58 +08:00
youtaol 72273b7a85 Add a class to check the send result in Google Maps, Docs and Fusion Tables.
Change the code to give an activity to each track.
Change the way to initialize the static fields in EndToEndTestUtils.
2012-07-04 15:32:25 +08:00
youtaol 4dddea507f Merge heads 2012-07-03 20:07:00 +08:00
youtaol ec74968f94 Add a check about the voice frequency menu and split frequency. 2012-07-03 20:04:48 +08:00
Jimmy Shih 29bd7889b7 merge heads 2012-04-03 09:58:22 -07:00
345 changed files with 13317 additions and 10413 deletions
+55 -3
View File
@@ -1,4 +1,4 @@
#Fri Oct 21 20:06:28 BRST 2011
#Tue Jul 17 10:23:26 PDT 2012
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
@@ -76,29 +76,66 @@ org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.source=1.6
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_field=1585
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_field.count_dependent=1585|-1|1585
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_local_variable=1585
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_local_variable.count_dependent=1585|-1|1585
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_method=1585
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_method.count_dependent=1585|-1|1585
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_package=1585
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_package.count_dependent=1585|-1|1585
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_parameter=1040
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_parameter.count_dependent=1040|-1|1040
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_type=1585
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_type.count_dependent=1585|-1|1585
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression.count_dependent=16|-1|16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation.count_dependent=16|-1|16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=48
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant.count_dependent=16|-1|16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call.count_dependent=16|-1|16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation.count_dependent=16|-1|16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression.count_dependent=16|-1|16
org.eclipse.jdt.core.formatter.alignment_for_assignment=0
org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
org.eclipse.jdt.core.formatter.alignment_for_binary_expression.count_dependent=16|-1|16
org.eclipse.jdt.core.formatter.alignment_for_cascading_method_invocation_with_arguments=16
org.eclipse.jdt.core.formatter.alignment_for_cascading_method_invocation_with_arguments.count_dependent=16|-1|16
org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
org.eclipse.jdt.core.formatter.alignment_for_enum_constants=48
org.eclipse.jdt.core.formatter.alignment_for_enum_constants.count_dependent=0|-1|0
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer.count_dependent=16|-1|16
org.eclipse.jdt.core.formatter.alignment_for_field_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_for_statement=16
org.eclipse.jdt.core.formatter.alignment_for_generic_type_arguments=16
org.eclipse.jdt.core.formatter.alignment_for_generic_type_arguments.count_dependent=16|-1|16
org.eclipse.jdt.core.formatter.alignment_for_local_variable_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields.count_dependent=16|-1|16
org.eclipse.jdt.core.formatter.alignment_for_new_anonymous_class=0
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration.count_dependent=16|-1|16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration.count_dependent=16|-1|16
org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation.count_dependent=16|-1|16
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=48
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration.count_dependent=16|-1|16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration.count_dependent=16|-1|16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration.count_dependent=16|-1|16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration.count_dependent=16|-1|16
org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
org.eclipse.jdt.core.formatter.blank_lines_after_package=1
@@ -138,12 +175,14 @@ org.eclipse.jdt.core.formatter.comment.line_length=80
org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
org.eclipse.jdt.core.formatter.comment_new_line_at_start_of_html_paragraph=true
org.eclipse.jdt.core.formatter.compact_else_if=true
org.eclipse.jdt.core.formatter.continuation_indentation=2
org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=true
org.eclipse.jdt.core.formatter.force_if_else_statement_brace=false
org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
@@ -210,6 +249,7 @@ org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_re
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
org.eclipse.jdt.core.formatter.insert_space_after_comment_prefix=insert
org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
@@ -340,7 +380,7 @@ org.eclipse.jdt.core.formatter.join_lines_in_comments=true
org.eclipse.jdt.core.formatter.join_wrapped_lines=true
org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=true
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
org.eclipse.jdt.core.formatter.lineSplit=100
org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
@@ -348,10 +388,22 @@ org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
org.eclipse.jdt.core.formatter.sort_local_variable_annotations=false
org.eclipse.jdt.core.formatter.sort_member_annotations=false
org.eclipse.jdt.core.formatter.sort_package_annotations=false
org.eclipse.jdt.core.formatter.sort_parameter_annotations=false
org.eclipse.jdt.core.formatter.sort_type_annotations=false
org.eclipse.jdt.core.formatter.tabulation.char=space
org.eclipse.jdt.core.formatter.tabulation.size=2
org.eclipse.jdt.core.formatter.use_on_off_tags=false
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
org.eclipse.jdt.core.formatter.wrap_comment_inline_tags=false
org.eclipse.jdt.core.formatter.wrap_non_simple_local_variable_annotation=true
org.eclipse.jdt.core.formatter.wrap_non_simple_member_annotation=true
org.eclipse.jdt.core.formatter.wrap_non_simple_package_annotation=true
org.eclipse.jdt.core.formatter.wrap_non_simple_parameter_annotation=false
org.eclipse.jdt.core.formatter.wrap_non_simple_type_annotation=true
org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
org.eclipse.jdt.core.formatter.wrap_prefer_two_fragments=false
+3 -3
View File
@@ -1,8 +1,8 @@
#Thu Jul 21 03:04:13 BRT 2011
#Tue Jul 17 10:22:06 PDT 2012
eclipse.preferences.version=1
editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
formatter_profile=_MyTracks
formatter_settings_version=12
formatter_profile=_My Tracks
formatter_settings_version=13
org.eclipse.jdt.ui.ignorelowercasenames=true
org.eclipse.jdt.ui.importorder=com;android;java;javax;org;
org.eclipse.jdt.ui.ondemandthreshold=99
+6 -4
View File
@@ -16,8 +16,8 @@ limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:installLocation="auto"
android:versionCode="48"
android:versionName="2.0"
android:versionCode="56"
android:versionName="2.0.2"
package="com.google.android.maps.mytracks" >
<!-- Permission to initialize services -->
@@ -82,7 +82,7 @@ limitations under the License.
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="15" />
android:targetSdkVersion="16" />
<!-- Required features -->
<uses-feature
android:name="android.hardware.location"
@@ -236,10 +236,12 @@ limitations under the License.
<receiver android:name="com.google.android.apps.mytracks.widgets.TrackWidgetProvider" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="com.google.android.apps.mytracks.TRACK_PAUSED" />
<action android:name="com.google.android.apps.mytracks.TRACK_RESUMED" />
<action android:name="com.google.android.apps.mytracks.TRACK_STARTED" />
<action android:name="com.google.android.apps.mytracks.TRACK_STOPPED" />
<action android:name="com.google.android.apps.mytracks.TRACK_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/track_widget_info" />
+1 -1
View File
@@ -11,5 +11,5 @@
split.density=false
proguard.config=proguard.cfg
# Project target.
target=Google Inc.:Google APIs:15
target=Google Inc.:Google APIs:16
android.library.reference.1=../MyTracksLib
Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

@@ -1,29 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2012 Google Inc.
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.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<solid android:color="@android:color/transparent" />
<padding
android:bottom="8dp"
android:left="8dp"
android:right="8dp"
android:top="8dp" />
<corners android:radius="8dp" />
<stroke
android:color="@android:color/white"
android:width="2dp" />
</shape>
@@ -1,26 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2012 Google Inc.
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.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<solid android:color="@color/track_widget_red" />
<padding
android:bottom="8dp"
android:left="8dp"
android:right="8dp"
android:top="8dp" />
<corners android:radius="8dp" />
</shape>
+2
View File
@@ -17,10 +17,12 @@ limitations under the License.
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
<Button
android:id="@+id/help_about"
android:layout_gravity="left"
android:text="@string/help_about"
style="@style/BottomButton" />
<Button
android:id="@+id/help_ok"
android:layout_gravity="right"
android:text="@string/generic_ok"
style="@style/BottomButton" />
</merge>
@@ -17,9 +17,11 @@ limitations under the License.
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
<Button
android:id="@+id/marker_edit_cancel"
android:layout_gravity="left"
android:text="@string/generic_cancel"
style="@style/BottomButton" />
<Button
android:id="@+id/marker_edit_done"
android:layout_gravity="right"
style="@style/BottomButton" />
</merge>
@@ -17,10 +17,12 @@ limitations under the License.
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
<Button
android:id="@+id/track_edit_cancel"
android:layout_gravity="left"
android:text="@string/generic_cancel"
style="@style/BottomButton" />
<Button
android:id="@+id/track_edit_save"
android:layout_gravity="right"
android:text="@string/generic_save"
style="@style/BottomButton" />
</merge>
+2
View File
@@ -17,10 +17,12 @@ limitations under the License.
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
<Button
android:id="@+id/help_ok"
android:layout_gravity="left"
android:text="@string/generic_ok"
style="@style/BottomButton" />
<Button
android:id="@+id/help_about"
android:layout_gravity="right"
android:text="@string/help_about"
style="@style/BottomButton" />
</merge>
+4
View File
@@ -61,6 +61,10 @@ limitations under the License.
android:id="@+id/list_item_start_time"
style="@style/ListItemStats" />
</LinearLayout>
<TextView
android:id="@+id/list_item_recording"
android:singleLine="true"
style="@style/TextSmall" />
<TextView
android:id="@+id/list_item_description"
android:singleLine="false"
@@ -17,9 +17,11 @@ limitations under the License.
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
<Button
android:id="@+id/marker_edit_done"
android:layout_gravity="left"
style="@style/BottomButton" />
<Button
android:id="@+id/marker_edit_cancel"
android:layout_gravity="right"
android:text="@string/generic_cancel"
style="@style/BottomButton" />
</merge>
+28 -4
View File
@@ -29,21 +29,32 @@ limitations under the License.
<!-- Total time/moving time -->
<TableRow>
<TextView
android:id="@+id/stats_total_time_label"
android:text="@string/stats_total_time"
style="@style/StatsLabel" />
<TextView
android:id="@+id/stats_moving_time_label"
android:layout_column="2"
android:text="@string/stats_moving_time"
style="@style/StatsLabel" />
</TableRow>
<TableRow>
<TextView
android:id="@+id/stats_total_time_value"
style="@style/StatsValue" />
<TextView
android:id="@+id/stats_moving_time_spacer"
style="@style/StatsSpacer" />
<TextView
android:id="@+id/stats_moving_time_value"
style="@style/StatsValue" />
</TableRow>
<!-- Average speed/average moving speed and max speed (average pace/average moving pace and fastest pace) -->
<!-- Average speed/average moving speed (average pace/average moving pace) -->
<TableRow>
<TextView
android:id="@+id/stats_average_speed_label"
style="@style/StatsLabel" />
<TextView
android:id="@+id/stats_max_speed_label"
android:id="@+id/stats_average_moving_speed_label"
android:layout_column="2"
style="@style/StatsLabel" />
</TableRow>
@@ -51,7 +62,20 @@ limitations under the License.
<TextView
android:id="@+id/stats_average_speed_value"
style="@style/StatsValue" />
<TextView style="@style/StatsSpacer" />
<TextView
android:id="@+id/stats_average_moving_speed_spacer"
style="@style/StatsSpacer" />
<TextView
android:id="@+id/stats_average_moving_speed_value"
style="@style/StatsValue" />
</TableRow>
<!-- Max speed (fastest pace) -->
<TableRow>
<TextView
android:id="@+id/stats_max_speed_label"
style="@style/StatsLabel" />
</TableRow>
<TableRow>
<TextView
android:id="@+id/stats_max_speed_value"
style="@style/StatsValue" />
+74
View File
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2012 Google Inc.
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.
-->
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
<LinearLayout
android:background="@color/black"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:orientation="horizontal"
android:paddingBottom="8dp"
android:paddingTop="8dp" >
<View
android:layout_height="fill_parent"
android:layout_weight="1"
android:layout_width="0dp" />
<ImageButton
android:background="@android:color/transparent"
android:contentDescription="@string/icon_record_track"
android:id="@+id/track_controller_record"
android:layout_height="wrap_content"
android:layout_weight="10"
android:layout_width="0dp" />
<RelativeLayout
android:layout_height="fill_parent"
android:layout_weight="6"
android:layout_width="0dp" >
<TextView
android:id="@+id/track_controller_total_time"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textColor="@android:color/white"
style="@style/TextSmall" />
<TextView
android:id="@+id/track_controller_status"
android:layout_above="@id/track_controller_total_time"
android:layout_alignParentLeft="true"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:singleLine="true"
style="@style/TextTiny" />
</RelativeLayout>
<ImageButton
android:background="@android:color/transparent"
android:contentDescription="@string/icon_stop_recording"
android:id="@+id/track_controller_stop"
android:layout_height="wrap_content"
android:layout_weight="10"
android:layout_width="0dp"
android:src="@drawable/btn_stop_1" />
<View
android:layout_height="fill_parent"
android:layout_weight="1"
android:layout_width="0dp" />
</LinearLayout>
<View
android:background="@color/gray"
android:layout_height="1dp"
android:layout_width="fill_parent" />
</merge>
+34 -23
View File
@@ -14,29 +14,40 @@ 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.
-->
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent" >
<LinearLayout
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:orientation="vertical" >
<TabWidget
android:id="@android:id/tabs"
android:layout_height="wrap_content"
android:layout_weight="0"
android:layout_width="fill_parent"
android:orientation="vertical" >
<TabHost
android:id="@android:id/tabhost"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_width="fill_parent" >
<LinearLayout
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:orientation="horizontal" />
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_height="0dp"
android:layout_weight="0"
android:layout_width="0dp" />
<FrameLayout
android:id="@+id/realtabcontent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_width="fill_parent" />
android:orientation="vertical" >
<TabWidget
android:id="@android:id/tabs"
android:layout_height="wrap_content"
android:layout_weight="0"
android:layout_width="fill_parent"
android:orientation="horizontal" />
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_height="0dp"
android:layout_weight="0"
android:layout_width="0dp" />
<FrameLayout
android:id="@+id/realtabcontent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_width="fill_parent" />
</LinearLayout>
</TabHost>
<LinearLayout
android:id="@+id/track_controler_container"
style="@style/TrackControllerContainer" >
<include layout="@layout/track_controller" />
</LinearLayout>
</TabHost>
</LinearLayout>
@@ -17,10 +17,12 @@ limitations under the License.
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
<Button
android:id="@+id/track_edit_save"
android:layout_gravity="left"
android:text="@string/generic_save"
style="@style/BottomButton" />
<Button
android:id="@+id/track_edit_cancel"
android:layout_gravity="right"
android:text="@string/generic_cancel"
style="@style/BottomButton" />
</merge>
+18 -25
View File
@@ -14,34 +14,27 @@ 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.
-->
<merge xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent" >
android:layout_width="fill_parent"
android:orientation="vertical" >
<ListView
android:id="@+id/track_list"
android:layout_height="fill_parent"
android:layout_height="0dp"
android:layout_weight="1.0"
android:layout_width="fill_parent" />
<LinearLayout
android:gravity="center"
android:id="@+id/track_list_empty"
android:layout_height="fill_parent"
<TextView
android:id="@+id/track_list_empty_view"
android:layout_height="0dp"
android:layout_weight="1.0"
android:layout_width="fill_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/track_list_empty_message"
android:text="@string/track_list_empty_message"
android:visibility="gone"
style="@style/ListEmptyTextView" >
</TextView>
<ImageButton
android:background="@color/transparent"
android:contentDescription="@string/menu_record_track"
android:id="@+id/track_list_record_button"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:padding="16dp"
android:src="@drawable/menu_record_track"
android:visibility="gone"
style="@android:style/Widget.DeviceDefault.ImageButton" />
android:text="@string/track_list_empty_message"
android:visibility="gone"
style="@style/ListEmptyTextView" >
</TextView>
<LinearLayout
android:id="@+id/track_controler_container"
style="@style/TrackControllerContainer" >
<include layout="@layout/track_controller" />
</LinearLayout>
</merge>
</LinearLayout>
+69 -52
View File
@@ -15,83 +15,100 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:background="@drawable/track_widget_background"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:padding="@dimen/widget_margin" >
<LinearLayout
android:background="@drawable/track_widget_background"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:orientation="horizontal" >
<ImageButton
android:background="@android:color/transparent"
android:contentDescription="@string/my_tracks_app_name"
android:id="@+id/track_widget_icon"
android:layout_height="fill_parent"
android:layout_width="wrap_content"
android:padding="8dp"
android:src="@drawable/my_tracks_icon" />
android:orientation="vertical"
android:paddingBottom="8dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="8dp" >
<LinearLayout
android:clickable="true"
android:id="@+id/track_widget_statistics"
android:layout_height="fill_parent"
android:layout_weight="1"
android:layout_width="0dp"
android:orientation="vertical"
android:paddingLeft="8dp" >
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:orientation="horizontal" >
<TextView
android:id="@+id/track_widget_distance_value"
style="@style/TrackWidgetValue" />
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:orientation="vertical" >
<LinearLayout style="@style/TrackWidgetStat" >
<TextView
android:text="@string/stats_total_distance"
style="@style/TrackWidgetLabel" />
<TextView style="@style/TrackWidgetSpacer" />
<TextView
android:id="@+id/track_widget_total_distance_value"
style="@style/TrackWidgetLabel" />
</LinearLayout>
<LinearLayout
android:background="@color/track_widget_line"
android:layout_height="1dp"
android:layout_width="fill_parent" />
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:orientation="horizontal" >
<LinearLayout style="@style/TrackWidgetSeparator" />
<LinearLayout style="@style/TrackWidgetStat" >
<TextView
android:id="@+id/track_widget_time_value"
style="@style/TrackWidgetValue" />
android:text="@string/stats_total_time"
style="@style/TrackWidgetLabel" />
<TextView style="@style/TrackWidgetSpacer" />
<Chronometer
android:id="@+id/track_widget_total_time_value"
style="@style/TrackWidgetLabel" />
</LinearLayout>
<LinearLayout style="@style/TrackWidgetSeparator" />
<LinearLayout style="@style/TrackWidgetStat" >
<TextView
android:id="@+id/track_widget_time_label"
android:id="@+id/track_widget_average_speed_label"
style="@style/TrackWidgetLabel" />
<TextView style="@style/TrackWidgetSpacer" />
<TextView
android:id="@+id/track_widget_average_speed_value"
style="@style/TrackWidgetLabel" />
</LinearLayout>
<LinearLayout
android:background="@color/track_widget_line"
android:layout_height="1dp"
android:layout_width="fill_parent" />
<LinearLayout
android:id="@+id/track_widget_moving_time_container"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:orientation="horizontal" >
<TextView
android:id="@+id/track_widget_speed_value"
style="@style/TrackWidgetValue" />
<TextView
android:id="@+id/track_widget_speed_label"
style="@style/TrackWidgetLabel" />
android:orientation="vertical" >
<LinearLayout style="@style/TrackWidgetSeparator" />
<LinearLayout style="@style/TrackWidgetStat" >
<TextView
android:text="@string/stats_moving_time"
style="@style/TrackWidgetLabel" />
<TextView style="@style/TrackWidgetSpacer" />
<TextView
android:id="@+id/track_widget_moving_time_value"
style="@style/TrackWidgetLabel" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:clipChildren="false"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:orientation="horizontal"
android:paddingLeft="4dp"
android:paddingRight="4dp"
android:paddingTop="4dp" >
<ImageButton
android:background="@drawable/track_widget_record_button_background"
android:contentDescription="@string/menu_record_track"
android:background="@android:color/transparent"
android:contentDescription="@string/icon_record_track"
android:id="@+id/track_widget_record_button"
android:src="@drawable/track_widget_record_button"
style="@style/TrackWidgetButton" />
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:src="@drawable/btn_record" />
<TextView
android:id="@+id/track_widget_record_status"
android:layout_gravity="center_vertical"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_width="0dp"
android:singleLine="true"
style="@style/TextSmall" />
<ImageButton
android:background="@drawable/track_widget_stop_button_background"
android:contentDescription="@string/menu_stop_recording"
android:background="@android:color/transparent"
android:contentDescription="@string/icon_stop_recording"
android:id="@+id/track_widget_stop_button"
android:src="@drawable/track_widget_stop_button"
style="@style/TrackWidgetButton" />
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:src="@drawable/btn_stop_0" />
</LinearLayout>
</LinearLayout>
</FrameLayout>
+2 -1
View File
@@ -18,5 +18,6 @@ limitations under the License.
<item
android:icon="@drawable/menu_satellite_mode"
android:id="@+id/map_satellite_mode"
android:orderInCategory="6"/>
android:orderInCategory="5"
android:showAsAction="ifRoom"/>
</menu>
+1 -1
View File
@@ -24,6 +24,6 @@ limitations under the License.
android:actionViewClass="android.widget.SearchView"
android:icon="@drawable/menu_search"
android:id="@+id/marker_list_search"
android:showAsAction="always|collapseActionView"
android:showAsAction="ifRoom|collapseActionView"
android:title="@string/menu_search"/>
</menu>
+1 -1
View File
@@ -19,6 +19,6 @@ limitations under the License.
android:actionViewClass="android.widget.SearchView"
android:icon="@drawable/menu_search"
android:id="@+id/search_list_search"
android:showAsAction="always|collapseActionView"
android:showAsAction="ifRoom|collapseActionView"
android:title="@string/menu_search"/>
</menu>
+22 -28
View File
@@ -15,57 +15,41 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:icon="@drawable/menu_stop_recording"
android:id="@+id/track_detail_stop_recording"
android:orderInCategory="1"
android:showAsAction="ifRoom"
android:title="@string/menu_stop_recording"/>
<item
android:icon="@drawable/menu_insert_marker"
android:id="@+id/track_detail_insert_marker"
android:orderInCategory="2"
android:orderInCategory="1"
android:showAsAction="ifRoom"
android:title="@string/menu_insert_marker"/>
<item
android:icon="@drawable/menu_play"
android:id="@+id/track_detail_play"
android:orderInCategory="3"
android:orderInCategory="2"
android:showAsAction="ifRoom"
android:title="@string/menu_play"/>
<item
android:icon="@drawable/menu_share"
android:id="@+id/track_detail_share"
android:orderInCategory="4"
android:orderInCategory="3"
android:showAsAction="ifRoom"
android:title="@string/menu_share">
</item>
<item
android:icon="@drawable/menu_markers"
android:id="@+id/track_detail_markers"
android:orderInCategory="5"
android:orderInCategory="4"
android:showAsAction="ifRoom"
android:title="@string/menu_markers"/>
<!-- android:orderInCategory="6" is in map.xml -->
<item
android:icon="@drawable/menu_voice_frequency"
android:id="@+id/track_detail_voice_frequency"
android:orderInCategory="7"
android:title="@string/menu_voice_frequency"/>
<item
android:icon="@drawable/menu_split_frequency"
android:id="@+id/track_detail_split_frequency"
android:orderInCategory="8"
android:title="@string/menu_split_frequency"/>
<!-- android:orderInCategory="5" is in map.xml -->
<item
android:icon="@drawable/menu_send_google"
android:id="@+id/track_detail_send_google"
android:orderInCategory="9"
android:orderInCategory="6"
android:title="@string/menu_send_google"/>
<item
android:icon="@drawable/menu_save"
android:id="@+id/track_detail_save"
android:orderInCategory="10"
android:orderInCategory="7"
android:title="@string/menu_save">
<menu>
<item android:id="@+id/track_detail_save_gpx"/>
@@ -77,26 +61,36 @@ limitations under the License.
<item
android:icon="@drawable/menu_edit"
android:id="@+id/track_detail_edit"
android:orderInCategory="11"
android:orderInCategory="8"
android:title="@string/menu_edit"/>
<item
android:icon="@drawable/menu_delete"
android:id="@+id/track_detail_delete"
android:orderInCategory="12"
android:orderInCategory="9"
android:title="@string/menu_delete"/>
<item
android:icon="@drawable/menu_voice_frequency"
android:id="@+id/track_detail_voice_frequency"
android:orderInCategory="10"
android:title="@string/menu_voice_frequency"/>
<item
android:icon="@drawable/menu_split_frequency"
android:id="@+id/track_detail_split_frequency"
android:orderInCategory="11"
android:title="@string/menu_split_frequency"/>
<item
android:icon="@drawable/menu_sensor_state"
android:id="@+id/track_detail_sensor_state"
android:orderInCategory="13"
android:orderInCategory="12"
android:title="@string/menu_sensor_state"/>
<item
android:icon="@drawable/menu_settings"
android:id="@+id/track_detail_settings"
android:orderInCategory="14"
android:orderInCategory="13"
android:title="@string/menu_settings"/>
<item
android:icon="@drawable/menu_help"
android:id="@+id/track_detail_help"
android:orderInCategory="15"
android:orderInCategory="14"
android:title="@string/menu_help"/>
</menu>
+6 -11
View File
@@ -15,22 +15,17 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:icon="@drawable/menu_record_track"
android:id="@+id/track_list_record_track"
android:showAsAction="ifRoom"
android:title="@string/menu_record_track"/>
<item
android:icon="@drawable/menu_stop_recording"
android:id="@+id/track_list_stop_recording"
android:showAsAction="ifRoom"
android:title="@string/menu_stop_recording"/>
<item
android:actionViewClass="android.widget.SearchView"
android:icon="@drawable/menu_search"
android:id="@+id/track_list_search"
android:showAsAction="always|collapseActionView"
android:showAsAction="ifRoom|collapseActionView"
android:title="@string/menu_search"/>
<item
android:icon="@drawable/menu_start_gps"
android:id="@+id/track_list_start_gps"
android:showAsAction="ifRoom"
android:title="@string/menu_start_gps"/>
<item
android:icon="@drawable/menu_import"
android:id="@+id/track_list_import"
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More