From 16d3a3527443612a6b49ebb1c55988bca11dd222 Mon Sep 17 00:00:00 2001 From: Jimmy Shih Date: Wed, 20 Feb 2013 14:22:46 -0800 Subject: [PATCH] Remove in-app help content. Use a webview to access online help content. --- MyTracks/res/layout/help.xml | 116 +---------- MyTracks/res/values/do_not_translate.xml | 4 +- MyTracks/res/values/strings.xml | 189 +----------------- .../android/apps/mytracks/HelpActivity.java | 18 +- 4 files changed, 18 insertions(+), 309 deletions(-) diff --git a/MyTracks/res/layout/help.xml b/MyTracks/res/layout/help.xml index 16341955c..38db80adf 100644 --- a/MyTracks/res/layout/help.xml +++ b/MyTracks/res/layout/help.xml @@ -19,120 +19,10 @@ limitations under the License. android:layout_width="match_parent" android:orientation="vertical" > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + android:layout_width="match_parent" /> diff --git a/MyTracks/res/values/do_not_translate.xml b/MyTracks/res/values/do_not_translate.xml index ed27c3ee4..5291f2fd6 100644 --- a/MyTracks/res/values/do_not_translate.xml +++ b/MyTracks/res/values/do_not_translate.xml @@ -69,11 +69,11 @@ Google은 이용자에 대한 위치정보의 이용∙제공사실을 위치정 구글코리아 유한회사\n 대표자: 염동훈\n 주소 : 서울 강남구 역삼동 737 강남파이낸스센터 22층\n -전화번호 : (02) 531-9000\n - +전화번호 : (02) 531-9000\n support.google.com/maps/bin/answer.py?answer=144365 http://maps.google.com/mapfiles/ms/micons/ylw-pushpin.png http://maps.google.com/mapfiles/ms/micons/blue-pushpin.png + http://support.google.com/gmm/bin/topic.py?topic=2391064 www.google.com/policies/privacy/ My Tracks Recording Service groups.google.com/a/googleproductforums.com/forum/#!categories/maps/mytracks diff --git a/MyTracks/res/values/strings.xml b/MyTracks/res/values/strings.xml index 5f0a274af..ec31ff01b 100644 --- a/MyTracks/res/values/strings.xml +++ b/MyTracks/res/values/strings.xml @@ -562,14 +562,14 @@ limitations under the License. Google Drive."> Do you want to sync your tracks with Google Drive? This will allow you to view your tracks in Google Drive, share tracks via Google Drive, and view tracks shared with you. All tracks synced - to Google Drive will be private by default. + to Google Drive will be private by default. Sync with Google Drive - + @@ -780,183 +780,6 @@ limitations under the License. Tracks' dialog."> About My Tracks - - The GPS receiver draws a relatively high amount of power, so a fully charged battery typically - survives less than 5 hours. Battery life depends on many factors, including signal strength, - battery freshness, and tasks running in parallel. Switching off some or all of the device\'s - radios will lengthen battery life. Putting the device into Airplane mode will yield the best - results. - - - How long does the battery last when recording tracks? - - - Cell signal or data connection is not required to record GPS tracks. However, if there is no - data connection, you will not be able to see a map. Instead, you will see a grey screen or a - partial map. Tracks, represented as simple lines, can still be recorded even if there is no data - connection. - - - Do I need cell signal and data connection to use My Tracks? - - - From the track list, select “Delete all” when not recording. This permanently - deletes the recorded tracks from the device memory. If you have saved tracks or backups on the - external storage, you must delete them separately. You can access the external storage using - any file manager app from the Play Store or using a USB cable to connect your device to your - computer. Tracks uploaded to Google Maps, Google Fusion Tables, and Google Spreadsheets must - also be deleted separately. - - - How do I delete all the tracks from the device? - - - Currently, you can\'t with My Tracks. But you can upload your tracks to Google or save them to - the external storage to modify them there. - - - How can I edit or correct tracks for accuracy? - - - GPS receivers measure elevations much less precisely than latitude and longitude. Elevations - can sometimes be off by a few hundred feet, though relative changes are tracked more precisely. - To get a good elevation measurement, make sure that you have a strong GPS signal and wait a few - minutes for the elevation to settle to a stable value. - - - How precise is the elevation measurement? - - - Tracks saved on the external storage are not encrypted. Any application on the device can access - them. - - - Who can access the tracks saved on the external storage? - - - For My Tracks to work, your device needs to be in line-of-sight contact with the GPS satellites. - If the line-of-sight is obstructed by trees, buildings or canyon walls, you may not get an - accurate signal. If you see the message, wait a minute or two. If your device still does not - find a signal, move to an area clear of obstructions and try again. - - - Why does the application sometimes display “Waiting for GPS signal.”? - - - Under optimal conditions, the location error can be +/- 20 feet (6 meters). However, precision - depends on the quality of the GPS signal. The blue circle around the orange location arrow - indicates estimated precision. (You may need to zoom in or zoom out to see the circle.) You can - change the GPS precision at Settings -> Recording -> GPS accuracy. - - - How precise are the recorded tracks? - - - See %1$s. - - - What is the difference between public and unlisted when sending a track to Google Maps? - - - Markers are used to annotate a location. - - - What are markers? - - - My Tracks allows you to record GPS tracks and visualize your walking, running, biking or any - other activity while watching live performance statistics. My Tracks makes it easy to archive - your training history with Google Maps, Google Fusion Tables, and Google Spreadsheets, and share - your activities with friends and the world. - - - What is My Tracks? - - - You can use Google Earth or similar applications to visualize and edit GPS tracks. - - - What can I do with tracks after saving them to the external storage or sharing such files with - friends? - - - You can send a track to Google Maps, Google Fusion Tables, and Google Spreadsheets. Tracks sent - to Google Maps are at %1$s, “My Places”. Tracks sent to Google Fusion Tables are at - %2$s. Tracks sent to Google Spreadsheets are at %3$s. - - - Where can I send a track? - - - You can share a track as a link to Google Maps. Your track will first get uploaded to Google - Maps. - - - How do I share a track with friends? - - - By default, tracks sent to Google Maps are unlisted, tracks sent to Google Fusion Tables are - private, and tracks sent to Google Spreadsheets are private. For Google Maps, you can change the - default between public and unlisted via Settings -> Google. After uploading tracks, you can - change their visibility in Google Maps, Google Fusion Tables, and Google Spreadsheets. - - - Who can see the tracks I send to Google Maps, Google Fusion Tables, and Google Spreadsheets? - - - Split markers are used to segment a track to calculate statistics for each segment. Split - markers are inserted by setting the split frequency from the menu. - - - What are split markers? - - - Tracks on Google Maps and Google Fusion Tables are limited to certain sizes. - - - Why do very long tracks split into multiple segments upon sending them to Google Maps and - Google Fusion Tables? - write data to Google My Tracks and start/stop Google My Tracks recording - + Add emails - + Enter email addresses - + @@ -2466,7 +2289,7 @@ limitations under the License. Drive."> Shared with me - + diff --git a/MyTracks/src/com/google/android/apps/mytracks/HelpActivity.java b/MyTracks/src/com/google/android/apps/mytracks/HelpActivity.java index 2c6a419c4..cf2b1be36 100644 --- a/MyTracks/src/com/google/android/apps/mytracks/HelpActivity.java +++ b/MyTracks/src/com/google/android/apps/mytracks/HelpActivity.java @@ -20,13 +20,13 @@ import com.google.android.apps.mytracks.fragments.AboutDialogFragment; import com.google.android.apps.mytracks.fragments.AboutDialogFragment.AboutCaller; import com.google.android.apps.mytracks.fragments.EulaDialogFragment; import com.google.android.apps.mytracks.fragments.EulaDialogFragment.EulaCaller; -import com.google.android.apps.mytracks.util.StringUtils; import com.google.android.maps.mytracks.R; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; -import android.widget.TextView; +import android.webkit.WebView; +import android.webkit.WebViewClient; /** * An activity that displays the help page. @@ -39,14 +39,10 @@ public class HelpActivity extends AbstractMyTracksActivity implements AboutCalle protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - TextView mapsPublicUnlisted = (TextView) findViewById(R.id.help_maps_public_unlisted_answer); - mapsPublicUnlisted.setText(StringUtils.getHtml( - this, R.string.help_maps_public_unlisted_answer, R.string.maps_public_unlisted_url)); - - TextView sendTrack = (TextView) findViewById(R.id.help_send_track_answer); - sendTrack.setText(StringUtils.getHtml( - this, R.string.help_send_track_answer, R.string.send_google_maps_url, - R.string.send_google_fusion_tables_url, R.string.send_google_spreadsheets_url)); + WebView webView = (WebView) findViewById(R.id.help_webview); + webView.loadUrl(getString(R.string.my_tracks_help_url)); + webView.getSettings().setJavaScriptEnabled(true); + webView.setWebViewClient(new WebViewClient()); findViewById(R.id.help_ok).setOnClickListener(new OnClickListener() { public void onClick(View v) { @@ -74,6 +70,6 @@ public class HelpActivity extends AbstractMyTracksActivity implements AboutCalle @Override public void onEulaDone() { - // Do nothing + // Do nothing } }