Jimmy Shih
b1af2089a4
merge heads
2011-10-09 13:13:30 -07:00
Jimmy Shih
2b50a314a5
backout changeset ced20b29c911
2011-10-09 13:13:01 -07:00
Jimmy Shih
376d02cce2
Protects MyTracks notifications based on the settings bit.
...
Only sends broadcast notifications if allowed by the settings bit.
Introduces a permission for internal MyTracks communication.
Thus the MyTracks app widget can use this permission to
always receive broadcast notifications when a track starts
and stops.
2011-10-07 18:05:23 -07:00
Rimas Trumpa
a4ae9e8fd5
Fixed "My Location" map centering problem (Issue 501).
2011-10-08 01:48:13 +01:00
Jimmy Shih
9e5204934f
Protect MyTracksProvider based on the MyTracks settings bit.
...
Move MyTracksProvider to DatabaseProvider and protect the DatabaseProvider
using the AndroidManifest.xml.
Create a MyTracksProviderUtilFactory to create an instance of
MyTracksProviderUtils that accesses the DatabaseProvider.
Recreate MyTracksProvider by extending DatabaseProvider.
The recreated provider checks access, changes the authority,
and invokes the DatabaseProvider methods.
2011-10-07 16:23:59 -07:00
Jimmy Shih
1ffd77595d
Improve TrackRecordingService by placing checkService inside canAccess
2011-10-06 10:09:25 -07:00
Jimmy Shih
dac6a362f2
merge heads
2011-10-06 09:54:21 -07:00
Umran Abdulla
6d29b5140b
Fix for the exception thrown when remotely starting bluetooth sensors.
2011-10-06 15:02:39 +11:00
Umran Abdulla
2c5414a8e7
Makes changes to the sensor information screen, to allow sensor details to be
...
available when the application is not recording.
2011-10-06 14:26:10 +11:00
Jimmy Shih
2fa325dbf3
Protect TrackRecordingService to allow
...
external applications access based on the
sharing settings.
Protect all RPCs calls using the caller's
process id.
When the service is started, we cannot
tell whether the caller is MyTracks or
another app. Thus when the service
is started, we cannot access MyTracks
database or start/stop a recording.
Previsouly, only the MyTracks app
widget is using the service's start method
to start and stop a recording. Thus
create a private service, ControlRecordingService,
that only the MyTracks app widget can access and delegate
starting/stopping a recording to
TrackRecordingService.
2011-10-05 16:45:32 -07:00
Jimmy Shih
969a677d7d
Add a Share data settings
2011-10-04 18:35:37 -07:00
Jimmy Shih
90470342e7
merge heads
2011-10-04 14:51:45 -07:00
Jimmy Shih
a4e762fb01
update MyTracks permission labels and descriptions
2011-10-04 14:50:00 -07:00
Jimmy Shih
da2d732041
fix proguard issues with google-api-client-1.5.0
2011-10-04 13:57:27 -07:00
Jimmy Shih
6a5acee438
merge heads
2011-09-29 18:14:44 -07:00
Jimmy Shih
49cd5014d2
merge heads
2011-09-28 19:41:18 -07:00
Josh Kasten
522882c0cc
Added back throwing of IllegalStateExceptions to startNewTrack and
...
endCurrentTrack so they still are thrown when called from the
ServiceBinder methods.
2011-09-28 21:11:45 -05:00
Josh Kasten
7e8b4dc4b9
Removed ignore_illegal_state string and code the uses it.
...
Removed the throwing of exceptions on start and stop of tracks and instead
added checking to not run them.
2011-09-28 20:22:02 -05:00
Jimmy Shih
8e673f6634
Remove clearTrackDataHub in MyTracksApplication.java
2011-09-28 17:54:11 -07:00
Josh Kasten
05e6018bd1
Organized code in handleStartCommand into smaller methods to better see the code
...
paths and for eaier maintainability.
2011-09-28 19:22:49 -05:00
ase69s
e1a845d49f
I think i have done the commit correctly, althought i only had to correct manually keys.xml (add new key from the head branch xml to mine)
2011-09-29 01:34:43 +02:00
Josh Kasten
2deded2d88
Renamed omit_illegal_state to android.intent.extra.IGNORE_ILLEGAL_STATE
...
Code comment and code style change.
2011-09-27 22:49:53 -05:00
Josh Kasten
af550a7104
Fixed widget to not cause a unhandled exception to occur if you press on the widget
...
before it can update its button intent.
2011-09-27 19:59:33 -05:00
Jimmy Shih
e68d7eb12d
Upgrade google-api-client from 1.2.2-alpha to 1.5.0-beta.
2011-09-27 14:38:31 -07:00
Jimmy Shih
a186e68ca0
Fix based on Sandor's comments
2011-09-26 11:51:05 -07:00
Jimmy Shih
81c60ca6f2
merge heads
2011-09-26 11:27:34 -07:00
Jimmy Shih
bd9347afd7
merge heads
2011-09-26 10:54:11 -07:00
Jimmy Shih
9023cdf726
merge heads
2011-09-26 10:53:43 -07:00
Jimmy Shih
9caef87899
Automated merge with http://jkasten-mytracks2.googlecode.com/hg
2011-09-23 09:26:21 -07:00
ase69s
c9d9c065a2
Finally solved instanceof class test. Its ready to merge?
2011-09-23 17:54:58 +02:00
Jimmy Shih
c024c8d87b
Fix proguard issue with fusion table.
...
Fusion table depends on google-api-client-1.2.2.alpha.jar.
Proguard needs to be set correctly for the google-api-client library.
Tested a release version and is able to send a track to fusion table.
2011-09-22 18:47:31 -07:00
Josh Kasten
850a0d988a
Fixed Next key on the virtual keyboard on the "Marker Type" field to the next
...
field in the waypoint and track details activities.
2011-09-22 20:29:46 -05:00
Jimmy Shih
7bd3128e8f
In MyTracks onDestroy, set trackDataHub to null to save memory
2011-09-22 12:22:23 -07:00
Jimmy Shih
43a1ec60ce
create MyTracksApplication to keep global state like TrackDataHub
2011-09-22 11:25:27 -07:00
ase69s
d04d83b972
Theorically solved last problem with tests...anything more?
2011-09-22 19:22:28 +02:00
Josh Kasten
89516c41e3
Added hints to all text input fields with the same value as their label for
...
all languages.
2011-09-22 00:03:57 -05:00
Jimmy Shih
4f9b6535fb
Automated merge with http://mytracks.googlecode.com/hg/
2011-09-21 16:17:01 -07:00
Jimmy Shih
6ab1f6158a
Fixes various unit tests
2011-09-21 16:16:37 -07:00
Josh Kasten
bb8e6a51f4
* Added display_settings_screen_key to keys.xml and put it to use in
...
CheckUnits and SettingsActivity classes for use with intents.
* In SettingsActivity split onCreate() code into initActivityCommons() and
initActivitySpecifics() methods for easier maintaining of code required
for all screens and code require for only some screens.
2011-09-20 19:52:53 -05:00
ase69s
7a8ea2666b
Review issues corrected, pending issue about "expect" with class type argument
2011-09-20 22:31:59 +02:00
Josh Kasten
3029c6d10c
* Changed SettingsActivity and CheckUnits
...
to use open_settings_screen instead of "Open".
* Cleaned up SettingsActivity by removing the class scoped variable displaySettingsOnly.
2011-09-19 17:54:00 -05:00
Josh Kasten
9bb0ba2953
Merge from main repo
2011-09-19 17:38:32 -05:00
Sandor Dornbush
0e22eaf7c3
Merging head.
2011-09-19 13:43:58 -07:00
ase69s
53ee9d31bc
Review issues corrected, added test case for remaining class TrackPathPainterFactory
2011-09-19 20:25:41 +02:00
Jimmy Shih
7134edf2f2
Create DialogButton and DialogButtonSpacer styles.
...
Modify mytracks_send_to_google.xml dialog to use these styles.
2011-09-15 11:20:20 -07:00
Jimmy Shih
e4da671cbc
Improve the buttons layout on the "Send to Google" dialog.
...
For style,
I sort the attributes alphabetically except for "android:id".
If "android:id" exists, I place it on the same line as the element.
2011-09-14 17:31:57 -07:00
Josh Kasten
8cde2420e7
Merge from main repo
2011-09-13 22:48:50 -05:00
ase69s
3c4c215931
Review issues corrected
2011-09-13 20:26:28 +02:00
Rodrigo Damazio
2685309926
Fixing NPE in finalizer.
2011-09-11 09:06:06 -03:00
Rodrigo Damazio
03b4a788c5
Fixing potential race condition when stopping the data hub.
2011-09-11 08:48:58 -03:00