addresses issue #22: Why Steps Taken is -1? / missing pedometer
This commit is contained in:
parent
766a7c2c7d
commit
4025bbf0f5
10 changed files with 62 additions and 2 deletions
|
@ -10,7 +10,9 @@ android {
|
|||
targetSdkVersion project.ext.targetSdkVersion
|
||||
versionCode project.ext.versionCode
|
||||
versionName project.ext.versionName
|
||||
|
||||
vectorDrawables.useSupportLibrary = true
|
||||
resConfigs "en", "de", "id", "it", "ja", "nb-rNO", "nl", "v21", "w820dp"
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
|
|
|
@ -337,10 +337,16 @@ public class MainActivityTrackFragment extends Fragment implements AdapterView.O
|
|||
DateFormat.getTimeInstance(DateFormat.SHORT, Locale.getDefault()).format(mTrack.getRecordingStart());
|
||||
String recordingStop = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()).format(mTrack.getRecordingStop()) + " " +
|
||||
DateFormat.getTimeInstance(DateFormat.SHORT, Locale.getDefault()).format(mTrack.getRecordingStop());
|
||||
String stepsTaken;
|
||||
if (mTrack.getStepCount() == -1) {
|
||||
stepsTaken = getString(R.string.statistics_sheet_p_steps_no_pedometer);
|
||||
} else {
|
||||
stepsTaken = String.valueOf(Math.round(mTrack.getStepCount()));
|
||||
}
|
||||
|
||||
// populate views
|
||||
mDistanceView.setText(mTrack.getTrackDistance());
|
||||
mStepsView.setText(String.valueOf(Math.round(mTrack.getStepCount())));
|
||||
mStepsView.setText(stepsTaken);
|
||||
mWaypointsView.setText(String.valueOf(mTrack.getWayPoints().size()));
|
||||
mDurationView.setText(mTrack.getTrackDuration());
|
||||
mRecordingStartView.setText(recordingStart);
|
||||
|
|
|
@ -73,6 +73,7 @@
|
|||
<string name="statistics_sheet_p_default_data">keine Daten vorhanden</string>
|
||||
<string name="statistics_sheet_p_distance">Distanz (gesamt):</string>
|
||||
<string name="statistics_sheet_p_steps">Schrittzähler:</string>
|
||||
<string name="statistics_sheet_p_steps_no_pedometer">Schrittzähler nicht verfügbar</string>
|
||||
<string name="statistics_sheet_p_waypoints">Aufgezeichnete Wegpunkte:</string>
|
||||
<string name="statistics_sheet_p_duration">Dauer (gesamt):</string>
|
||||
<string name="statistics_sheet_p_recording_start">Start der Aufzeichnung:</string>
|
||||
|
|
|
@ -73,6 +73,7 @@
|
|||
<string name="statistics_sheet_p_default_data">track data missing</string>
|
||||
<string name="statistics_sheet_p_distance">Total distance:</string>
|
||||
<string name="statistics_sheet_p_steps">Steps taken:</string>
|
||||
<string name="statistics_sheet_p_steps_no_pedometer">pedometer not available</string>
|
||||
<string name="statistics_sheet_p_waypoints">Recorded waypoints:</string>
|
||||
<string name="statistics_sheet_p_duration">Total duration:</string>
|
||||
<string name="statistics_sheet_p_recording_start">Recording started:</string>
|
||||
|
|
|
@ -73,6 +73,7 @@
|
|||
<string name="statistics_sheet_p_default_data">dati mancanti</string>
|
||||
<string name="statistics_sheet_p_distance">Distanza totale:</string>
|
||||
<string name="statistics_sheet_p_steps">Passi:</string>
|
||||
<string name="statistics_sheet_p_steps_no_pedometer">pedometer not available</string>
|
||||
<string name="statistics_sheet_p_waypoints">Waypoint registrati:</string>
|
||||
<string name="statistics_sheet_p_duration">Durata totale:</string>
|
||||
<string name="statistics_sheet_p_recording_start">Registrazione avviata il:</string>
|
||||
|
|
|
@ -1,17 +1,22 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<resources>
|
||||
<!-- activities -->
|
||||
<string name="app_name">Trackbook</string> <!-- please do not translate app_name - transcription into different alphabet types is fine though -->
|
||||
<string name="title_activity_infosheet">情報シート</string>
|
||||
|
||||
<!-- menu entries -->
|
||||
<string name="menu_my_location">私の場所</string>
|
||||
<string name="menu_about">アプリについて</string>
|
||||
|
||||
<!-- headers -->
|
||||
<string name="header_about">Trackbook について</string>
|
||||
|
||||
<!-- tabs -->
|
||||
<string name="tab_map">地図</string>
|
||||
<string name="tab_last_track">最後のトレース</string>
|
||||
<string name="tab_last_tracks">最後のトレース</string>
|
||||
|
||||
<!-- notification -->
|
||||
<string name="notification_title_trackbook_running">Trackbook 実行中</string>
|
||||
<string name="notification_title_trackbook_not_running">Trackbook は実行していません</string>
|
||||
<string name="notification_stop">停止</string>
|
||||
|
@ -21,13 +26,16 @@
|
|||
<string name="notification_channel_recording_name">Movement Recording State</string>
|
||||
<string name="notification_channel_recording_description">Display duration and distance. Option to stop movement recording.</string>
|
||||
|
||||
<!-- snackbar messages -->
|
||||
<string name="snackbar_message_tracking_stopped">トレースを停止しました</string>
|
||||
<string name="snackbar_message_tracking_started">トレースを開始しました</string>
|
||||
<string name="snackbar_message_location_offline">位置情報がオフです。Trackbook は動作しません。</string>
|
||||
|
||||
<!-- fab sub menu -->
|
||||
<string name="fab_sub_menu_clear">クリア</string>
|
||||
<string name="fab_sub_menu_save_and_clear">保存してクリア</string>
|
||||
|
||||
<!-- dialogs -->
|
||||
<string name="dialog_default_action_cancel">キャンセル</string>
|
||||
<string name="dialog_clear_content">記録をクリアしますか?</string>
|
||||
<string name="dialog_clear_action_clear">クリア</string>
|
||||
|
@ -41,6 +49,7 @@
|
|||
<string name="dialog_export_content_overwrite">File already exists. Export and overwrite this recording as GPX track.</string>
|
||||
<string name="dialog_export_action_overwrite">Export and Overwrite</string>
|
||||
|
||||
<!-- toast messages -->
|
||||
<string name="toast_message_permissions_granted">アクセス許可を付与しました。</string>
|
||||
<string name="toast_message_unable_to_start_app">Trackbook を起動できません。</string>
|
||||
<string name="toast_message_no_external_storage">外部ストレージにアクセスできません。</string>
|
||||
|
@ -54,19 +63,23 @@
|
|||
<string name="toast_message_export_success">GPX export successful:</string>
|
||||
<string name="toast_message_export_fail">GPX export failed:</string>
|
||||
|
||||
<!-- map markers -->
|
||||
<string name="marker_description_source">ソース</string>
|
||||
<string name="marker_description_time">時間</string>
|
||||
<string name="marker_description_accuracy">精度</string>
|
||||
|
||||
<!-- statistics sheet -->
|
||||
<string name="statistics_sheet_h1_statistics">統計情報</string>
|
||||
<string name="statistics_sheet_p_default_data">トレースデータが見つかりません</string>
|
||||
<string name="statistics_sheet_p_distance">総距離:</string>
|
||||
<string name="statistics_sheet_p_steps">歩数:</string>
|
||||
<string name="statistics_sheet_p_steps_no_pedometer">pedometer not available</string>
|
||||
<string name="statistics_sheet_p_waypoints">記録されたウェイ ポイント:</string>
|
||||
<string name="statistics_sheet_p_duration">合計時間:</string>
|
||||
<string name="statistics_sheet_p_recording_start">記録の開始:</string>
|
||||
<string name="statistics_sheet_p_recording_stop">記録の停止:</string>
|
||||
|
||||
<!-- onboarding layout -->
|
||||
<string name="layout_onboarding_h1_welcome">こんにちは</string>
|
||||
<string name="layout_onboarding_description_app_icon">Trackbook アプリ アイコン</string>
|
||||
<string name="layout_onboarding_h2_app_name">Trackbook</string>
|
||||
|
@ -78,9 +91,11 @@
|
|||
<string name="layout_onboarding_p_permission_storage">Trackbook は、Android の外部ストレージに地図タイルをキャッシュする osmdroid を使用します。地図キャッシュは、ユーザー向けファイル・システムの最上位レベルの osmdroid フォルダーで見つけることができます。</string>
|
||||
<string name="layout_onboarding_button_okay">完了!</string>
|
||||
|
||||
<!-- track tab onboarding -->
|
||||
<string name="track_tab_onboarding_h1_part_1">記録したトレース</string>
|
||||
<string name="track_tab_onboarding_h1_part_2">… ここに表示されます。</string>
|
||||
|
||||
<!-- infosheet about -->
|
||||
<string name="infosheet_about_h1_about">Trackbook について</string>
|
||||
<string name="infosheet_about_h2_recorder">Android 用の移動レコーダー</string>
|
||||
<string name="infosheet_about_h3_version">バージョン 1.0 (Astronomy Domine)</string>
|
||||
|
@ -96,6 +111,7 @@
|
|||
<string name="infosheet_about_h3_external">WRITE_EXTERNAL_STORAGE アクセス許可</string>
|
||||
<string name="infosheet_about_p_external">Trackbook は、Android の外部ストレージに地図タイルをキャッシュする osmdroid を使用します。地図キャッシュは、ユーザー向けファイル・システムの最上位レベルの osmdroid フォルダーで見つけることができます。</string>
|
||||
|
||||
<!-- descriptions -->
|
||||
<string name="descr_map_current_track">現在のトレースのマッピング</string>
|
||||
<string name="descr_map_last_track">最後のトレースのマッピング</string>
|
||||
<string name="descr_fab_main">メイン アクション ボタン</string>
|
||||
|
|
|
@ -1,17 +1,22 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<resources>
|
||||
<!-- activities -->
|
||||
<string name="app_name">Trackbook</string> <!-- please do not translate app_name - transcription into different alphabet types is fine though -->
|
||||
<string name="title_activity_infosheet">Infoark</string>
|
||||
|
||||
<!-- menu entries -->
|
||||
<string name="menu_my_location">Min plasssering</string>
|
||||
<string name="menu_about">Om</string>
|
||||
|
||||
<!-- headers -->
|
||||
<string name="header_about">Om Trackbook</string>
|
||||
|
||||
<!-- tabs -->
|
||||
<string name="tab_map">KART</string>
|
||||
<string name="tab_last_track">SISTE TUR</string>
|
||||
<string name="tab_last_tracks">SISTE TURER</string>
|
||||
|
||||
<!-- notification -->
|
||||
<string name="notification_title_trackbook_running">Trackbook kjører</string>
|
||||
<string name="notification_title_trackbook_not_running">Trackbook kjører ikke</string>
|
||||
<string name="notification_stop">Stopp</string>
|
||||
|
@ -21,13 +26,16 @@
|
|||
<string name="notification_channel_recording_name">Movement Recording State</string>
|
||||
<string name="notification_channel_recording_description">Display duration and distance. Option to stop movement recording.</string>
|
||||
|
||||
<!-- snackbar messages -->
|
||||
<string name="snackbar_message_tracking_stopped">Sporing stoppet</string>
|
||||
<string name="snackbar_message_tracking_started">Sporing startet</string>
|
||||
<string name="snackbar_message_location_offline">Plassering avskrudd. Trackbook bil ikke fungere.</string>
|
||||
|
||||
<!-- fab sub menu -->
|
||||
<string name="fab_sub_menu_clear">Tøm</string>
|
||||
<string name="fab_sub_menu_save_and_clear">Lagre og tøm</string>
|
||||
|
||||
<!-- dialogs -->
|
||||
<string name="dialog_default_action_cancel">Avbryt</string>
|
||||
<string name="dialog_clear_content">Fjern opptak?</string>
|
||||
<string name="dialog_clear_action_clear">Tøm</string>
|
||||
|
@ -41,6 +49,7 @@
|
|||
<string name="dialog_export_content_overwrite">Fila finnes allerede. Eksporter og overskriv dette opptaket som en GPX-tur.</string>
|
||||
<string name="dialog_export_action_overwrite">Eksporter og overskriv</string>
|
||||
|
||||
<!-- toast messages -->
|
||||
<string name="toast_message_permissions_granted">Tilgang gitt.</string>
|
||||
<string name="toast_message_unable_to_start_app">Trackbook kan ikke starte.</string>
|
||||
<string name="toast_message_no_external_storage">Fikk ikke tilgang til ekstern lagring.</string>
|
||||
|
@ -54,19 +63,23 @@
|
|||
<string name="toast_message_export_success">GPX-eksportering vellykket:</string>
|
||||
<string name="toast_message_export_fail">GPX-eksportering mislyktes:</string>
|
||||
|
||||
<!-- map markers -->
|
||||
<string name="marker_description_source">Kilde</string>
|
||||
<string name="marker_description_time">Tid</string>
|
||||
<string name="marker_description_accuracy">Nøyaktighet</string>
|
||||
|
||||
<!-- statistics sheet -->
|
||||
<string name="statistics_sheet_h1_statistics">Statistikk</string>
|
||||
<string name="statistics_sheet_p_default_data">turdata mangler</string>
|
||||
<string name="statistics_sheet_p_distance">Total distanse:</string>
|
||||
<string name="statistics_sheet_p_steps">Skritt:</string>
|
||||
<string name="statistics_sheet_p_steps_no_pedometer">pedometer not available</string>
|
||||
<string name="statistics_sheet_p_waypoints">Registrerte veipunkter:</string>
|
||||
<string name="statistics_sheet_p_duration">Total varighet:</string>
|
||||
<string name="statistics_sheet_p_recording_start">Opptak startet:</string>
|
||||
<string name="statistics_sheet_p_recording_stop">Opptak stoppet:</string>
|
||||
|
||||
<!-- onboarding layout -->
|
||||
<string name="layout_onboarding_h1_welcome">Hallo</string>
|
||||
<string name="layout_onboarding_description_app_icon">Programikon for Trackbook</string>
|
||||
<string name="layout_onboarding_h2_app_name">Trackbook</string>
|
||||
|
@ -78,9 +91,11 @@
|
|||
<string name="layout_onboarding_p_permission_storage">Trackbook brukerosmdroid, som hurtiglagrer kartfliser på Androids eksterne lagringsmedie. Du kan finne dette karthurtiglageret i osmdroid-mappa på topnivået av brukergrensesnittet.</string>
|
||||
<string name="layout_onboarding_button_okay">Skjønner!</string>
|
||||
|
||||
<!-- track tab onboarding -->
|
||||
<string name="track_tab_onboarding_h1_part_1">Dine registrerte turer</string>
|
||||
<string name="track_tab_onboarding_h1_part_2">… vil vises her</string>
|
||||
|
||||
<!-- infosheet about -->
|
||||
<string name="infosheet_about_h1_about">Om Trackbook</string>
|
||||
<string name="infosheet_about_h2_recorder">Bevegelsesopptaker for Android</string>
|
||||
<string name="infosheet_about_h3_version">Versjon 1.0 (Astronomy Domine)</string>
|
||||
|
@ -96,6 +111,7 @@
|
|||
<string name="infosheet_about_h3_external">Tilganger WRITE_EXTERNAL_STORAGE</string>
|
||||
<string name="infosheet_about_p_external">Trackbook bruker osmdroid, som hurtiglagrer fliser på Androids eksterne lagringsmedie. Du kan finne kartflisene i osmdroid-mappa på toppnivået av brukergrensesnittet.</string>
|
||||
|
||||
<!-- descriptions -->
|
||||
<string name="descr_map_current_track">Kartlegging av nåværende tur</string>
|
||||
<string name="descr_map_last_track">Kartlegging av forrige tur</string>
|
||||
<string name="descr_fab_main">Hovedhandlingsknapp</string>
|
||||
|
|
|
@ -1,17 +1,22 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<resources>
|
||||
<!-- activities -->
|
||||
<string name="app_name">Trackbook</string> <!-- please do not translate app_name - transcription into different alphabet types is fine though -->
|
||||
<string name="title_activity_infosheet">Informatieblad</string>
|
||||
|
||||
<!-- menu entries -->
|
||||
<string name="menu_my_location">Mijn locatie</string>
|
||||
<string name="menu_about">Over</string>
|
||||
|
||||
<!-- headers -->
|
||||
<string name="header_about">Over Trackbook</string>
|
||||
|
||||
<!-- tabs -->
|
||||
<string name="tab_map">KAART</string>
|
||||
<string name="tab_last_track">LAATSTE BAAN</string>
|
||||
<string name="tab_last_tracks">LAST TRACKS</string>
|
||||
|
||||
<!-- notification -->
|
||||
<string name="notification_title_trackbook_running">Trackbook is actief</string>
|
||||
<string name="notification_title_trackbook_not_running">Trackbook is niet actief</string>
|
||||
<string name="notification_stop">Stoppen</string>
|
||||
|
@ -21,13 +26,16 @@
|
|||
<string name="notification_channel_recording_name">Movement Recording State</string>
|
||||
<string name="notification_channel_recording_description">Display duration and distance. Option to stop movement recording.</string>
|
||||
|
||||
<!-- snackbar messages -->
|
||||
<string name="snackbar_message_tracking_stopped">Bijhouden gestopt</string>
|
||||
<string name="snackbar_message_tracking_started">Bijhouden gestart</string>
|
||||
<string name="snackbar_message_location_offline">Locatie is uitgeschakeld; Trackbook zal niet werken.</string>
|
||||
|
||||
<!-- fab sub menu -->
|
||||
<string name="fab_sub_menu_clear">Wissen</string>
|
||||
<string name="fab_sub_menu_save_and_clear">Opslaan en wissen</string>
|
||||
|
||||
<!-- dialogs -->
|
||||
<string name="dialog_default_action_cancel">Cancel</string>
|
||||
<string name="dialog_clear_content">Clear Recording?</string>
|
||||
<string name="dialog_clear_action_clear">Clear</string>
|
||||
|
@ -41,6 +49,7 @@
|
|||
<string name="dialog_export_content_overwrite">File already exists. Export and overwrite this recording as GPX track.</string>
|
||||
<string name="dialog_export_action_overwrite">Export and Overwrite</string>
|
||||
|
||||
<!-- toast messages -->
|
||||
<string name="toast_message_permissions_granted">Rechten verleend.</string>
|
||||
<string name="toast_message_unable_to_start_app">Trackbook kan niet worden gestart.</string>
|
||||
<string name="toast_message_no_external_storage">Toegang tot externe opslag kan niet worden verkregen.</string>
|
||||
|
@ -54,19 +63,23 @@
|
|||
<string name="toast_message_export_success">GPX export successful:</string>
|
||||
<string name="toast_message_export_fail">GPX export failed:</string>
|
||||
|
||||
<!-- map markers -->
|
||||
<string name="marker_description_source">Bron</string>
|
||||
<string name="marker_description_time">Tijd</string>
|
||||
<string name="marker_description_accuracy">Nauwkeurigheid</string>
|
||||
|
||||
<!-- statistics sheet -->
|
||||
<string name="statistics_sheet_h1_statistics">Statistieken</string>
|
||||
<string name="statistics_sheet_p_default_data">baangegevens ontbreken</string>
|
||||
<string name="statistics_sheet_p_distance">Totale afstand:</string>
|
||||
<string name="statistics_sheet_p_steps">Gezette stappen:</string>
|
||||
<string name="statistics_sheet_p_steps_no_pedometer">pedometer not available</string>
|
||||
<string name="statistics_sheet_p_waypoints">Opgeslagen pauzelocaties:</string>
|
||||
<string name="statistics_sheet_p_duration">Totale duur:</string>
|
||||
<string name="statistics_sheet_p_recording_start">Bijhouden gestart:</string>
|
||||
<string name="statistics_sheet_p_recording_stop">Bijhouden gestopt:</string>
|
||||
|
||||
<!-- onboarding layout -->
|
||||
<string name="layout_onboarding_h1_welcome">Hallo</string>
|
||||
<string name="layout_onboarding_description_app_icon">Trackbook-app-pictogram</string>
|
||||
<string name="layout_onboarding_h2_app_name">Trackbook</string>
|
||||
|
@ -78,9 +91,11 @@
|
|||
<string name="layout_onboarding_p_permission_storage">Trackbook gebruikt osmdroid. osmdroid slaat kaarttegels op in een cache op Android\'s externe opslag. U kunt de kaartcache vinden in de osmdroid-map op het hoogste niveau van het gebruikersbestandssysteem.</string>
|
||||
<string name="layout_onboarding_button_okay">Ik snap het!</string>
|
||||
|
||||
<!-- track tab onboarding -->
|
||||
<string name="track_tab_onboarding_h1_part_1">Your recorded tracks</string>
|
||||
<string name="track_tab_onboarding_h1_part_2">… will show up here.</string>
|
||||
|
||||
<!-- infosheet about -->
|
||||
<string name="infosheet_about_h1_about">Over Trackbook</string>
|
||||
<string name="infosheet_about_h2_recorder">Bewegingsbijhouding voor Android</string>
|
||||
<string name="infosheet_about_h3_version">Versie 1.0 (Astronomy Domine)</string>
|
||||
|
@ -96,6 +111,7 @@
|
|||
<string name="infosheet_about_h3_external">Recht SCHRIJVEN_EXTERNE_OPSLAG</string>
|
||||
<string name="infosheet_about_p_external">Trackbook gebruikt osmdroid. osmdroid cachet kaarttegels op Android\'s externe opslag. U kunt de kaartcache vinden in de osmdroid-map op het hoogste niveau van het gebruikersbestandssysteem.</string>
|
||||
|
||||
<!-- descriptions -->
|
||||
<string name="descr_map_current_track">Kaart van de huidige baan</string>
|
||||
<string name="descr_map_last_track">Kaart van de laatste baan</string>
|
||||
<string name="descr_fab_main">Hoofd-actieknop</string>
|
||||
|
|
|
@ -73,6 +73,7 @@
|
|||
<string name="statistics_sheet_p_default_data">track data missing</string>
|
||||
<string name="statistics_sheet_p_distance">Total distance:</string>
|
||||
<string name="statistics_sheet_p_steps">Steps taken:</string>
|
||||
<string name="statistics_sheet_p_steps_no_pedometer">pedometer not available</string>
|
||||
<string name="statistics_sheet_p_waypoints">Recorded waypoints:</string>
|
||||
<string name="statistics_sheet_p_duration">Total duration:</string>
|
||||
<string name="statistics_sheet_p_recording_start">Recording started:</string>
|
||||
|
|
|
@ -22,7 +22,7 @@ allprojects {
|
|||
project.ext {
|
||||
applicationId = 'org.y20k.trackbook'
|
||||
versionCode = 13
|
||||
versionName = '1.0.6 (Astronomy Domine)'
|
||||
versionName = '1.0.7'
|
||||
minSdkVersion = 22
|
||||
compileSdkVersion = 26
|
||||
targetSdkVersion = 26
|
||||
|
|
Loading…
Reference in a new issue