Add two-ways sync to Google Drive.

This commit is contained in:
Jimmy Shih
2013-01-23 17:00:33 -08:00
parent 77e6dc1b73
commit ff375c1eb5
15 changed files with 1064 additions and 36 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

+4
View File
@@ -66,6 +66,10 @@ limitations under the License.
android:icon="@drawable/menu_aggregated_statistics"
android:id="@+id/track_list_aggregated_statistics"
android:title="@string/menu_aggregated_statistics"/>
<item
android:icon="@drawable/menu_sync_now"
android:id="@+id/track_list_sync_now"
android:title="@string/menu_sync_now"/>
<item
android:icon="@drawable/menu_settings"
android:id="@+id/track_list_settings"
+37 -2
View File
@@ -1277,6 +1277,12 @@ limitations under the License.
Character limit: ~20 (1 line)">
Stop GPS
</string>
<string name="menu_sync_now"
translation_description="In the menu, to sync now with Google Drive.
Character limit: ~20 (1 line)">
Sync now
</string>
<string name="menu_terrain"
translation_description="In the menu, under the map layer option, the submenu to display
terrain.
@@ -1342,6 +1348,15 @@ limitations under the License.
installation when the app wants to read My Tracks data.">
read Google My Tracks data
</string>
<string name="permission_request_message"
translation_description="The message when requesting permission.
%1$s account name. E.g., 'foo@foo.com'.">
for account %1$s
</string>
<string name="permission_request_title"
translation_description="The title when requesting permission.">
Request permission
</string>
<string name="permission_write_description"
translation_description="The permission description the Google Play Store shows during app
installation when the app wants to write data to My Tracks.">
@@ -1353,7 +1368,7 @@ limitations under the License.
installation when the app wants to write data to My Tracks.">
write data to Google My Tracks and start/stop Google My Tracks recording
</string>
<!-- Save -->
<string name="save_error"
translation_description="When saving to the external storage, the error message indicating that
@@ -1393,7 +1408,7 @@ limitations under the License.
the track that the marker belongs to.
%1$s: track name. E.g., 'Grand Canyon trail'.">
In track \'%1$s\'.
In track &#8216;%1$s&#8217;.
</string>
<string name="search_voice_prompt"
translation_description="Prompt shown when the user activates voice search, asking him to speak
@@ -1707,6 +1722,26 @@ limitations under the License.
Character limit: ~23 (1 line)">
Switch account
</string>
<string name="settings_google_drive_sync_confirm_message_off"
translation_description="In the 'Google' settings, the confirmation message when unchecking
'Sync Google Drive' checkbox.
%1$s account name. E.g., 'foo@foo.com'.">
This will remove sync with %1$s Google Drive. If sync again, all tracks will be treated as new.
</string>
<string name="settings_google_drive_sync_confirm_message_on"
translation_description="In the 'Google' settings, the confirmation message when checking the
'Sync Google Drive' checkbox.
%1$s account name. E.g., 'foo@foo.com'.
%2$s folder name. E.g., 'My Tracks'.">
This will sync with %1$s Google Drive &#8216;%2$s&#8217; folder. All files in the folder will be
synced as new tracks. If not desired, move those files to a different folder beforehand.
</string>
<string name="settings_google_drive_sync_no_permission"
translation_description="The message when unable to get Google Drive permission.">
Unable to get Google Drive permission.
</string>
<string name="settings_google_drive_sync_summary_on"
translation_description="In the 'Google' settings, the summary for the 'Sync Google Drive'
checkbox when it is checked explaining that all tracks will be synced to a Google Drive
+21
View File
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2013 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.
-->
<sync-adapter xmlns:android="http://schemas.android.com/apk/res/android"
android:contentAuthority="com.google.android.maps.mytracks"
android:accountType="com.google"
android:userVisible="true"
android:supportsUploading="true" />