Add new activity to display all the POI changes to upload to openstreetmap server
This commit is contained in:
parent
83fd560681
commit
84ad4b24a4
7 changed files with 49 additions and 3 deletions
|
@ -55,9 +55,10 @@
|
|||
<data android:scheme="geo"></data>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity android:name="net.osmand.plus.activities.TestVoiceActivity"></activity>
|
||||
<activity android:name="net.osmand.plus.activities.LocalIndexesActivity" android:label="@string/local_index_descr_title"></activity>
|
||||
<service android:process="net.osmand.plus" android:label="@string/process_navigation_service" android:name="net.osmand.plus.NavigationService">
|
||||
<activity android:name=".activities.TestVoiceActivity"></activity>
|
||||
<activity android:name=".activities.LocalIndexesActivity" android:label="@string/local_index_descr_title"></activity>
|
||||
<activity android:name=".activities.LocalOpenstreetmapActivity" android:label="@string/local_openstreetmap_descr_title"></activity>
|
||||
<service android:process="net.osmand.plus" android:label="@string/process_navigation_service" android:name=".NavigationService">
|
||||
<intent-filter><action android:name="net.osmand.plus.NavigationService"></action></intent-filter>
|
||||
</service>
|
||||
<receiver android:name="net.osmand.plus.OnNavigationServiceAlarmReceiver"/>
|
||||
|
|
10
OsmAnd/res/layout/local_openstreetmap.xml
Normal file
10
OsmAnd/res/layout/local_openstreetmap.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent" android:orientation="vertical">
|
||||
|
||||
<ExpandableListView android:id="@android:id/list" android:layout_width="fill_parent" android:layout_weight="1" android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="3dp" android:layout_marginTop="3dp" android:layout_marginRight="3dp" ></ExpandableListView>
|
||||
|
||||
</LinearLayout>
|
|
@ -1,5 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<resources>
|
||||
<string name="local_openstreetmap_descr_title">Asynchrone Openstreetmap POI Edition:</string>
|
||||
<string name="local_openstreetmap_settings">Local Openstreetmap Points</string>
|
||||
<string name="local_openstreetmap_settings_descr">Local Points Saved in DB</string>
|
||||
|
||||
<string name="live_monitoring_descr">Enable sending HTTP requests to a specified web service</string>
|
||||
<string name="live_monitoring">Enable Live Tracking</string>
|
||||
<string name="live_monitoring_interval_descr">Specify Live Tracking interval</string>
|
||||
|
|
|
@ -107,6 +107,7 @@
|
|||
<EditTextPreference android:title="@string/user_name" android:summary="@string/user_name_descr" android:key="user_name"></EditTextPreference>
|
||||
<EditTextPreference android:title="@string/user_password" android:password="true" android:summary="@string/user_password_descr"
|
||||
android:key="user_password"></EditTextPreference>
|
||||
<Preference android:title="@string/local_openstreetmap_settings" android:key="local_openstreetmap_points" android:summary="@string/local_openstreetmap_settings_descr"></Preference>
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="OsmAnd debugging and development">
|
||||
<CheckBoxPreference android:key="native_rendering" android:title="Native rendering" android:summary="Vector maps may display faster. May not work well on some devices."></CheckBoxPreference>
|
||||
|
|
|
@ -439,6 +439,8 @@ public class OsmandSettings {
|
|||
public final OsmandPreference<String> USER_PASSWORD =
|
||||
new StringPreference("user_password", "", true);
|
||||
|
||||
public static final String LOCAL_OPENSTREETMAP_POINTS = "local_openstreetmap_points";
|
||||
|
||||
|
||||
// this value string is synchronized with settings_pref.xml preference name
|
||||
public final OsmandPreference<DayNightMode> DAYNIGHT_MODE =
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
package net.osmand.plus.activities;
|
||||
|
||||
import net.osmand.plus.OsmandSettings;
|
||||
import net.osmand.plus.R;
|
||||
|
||||
import android.app.ExpandableListActivity;
|
||||
import android.os.Bundle;
|
||||
|
||||
public class LocalOpenstreetmapActivity extends ExpandableListActivity {
|
||||
|
||||
private OsmandSettings settings;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
setContentView(R.layout.local_openstreetmap);
|
||||
settings = OsmandSettings.getOsmandSettings(this);
|
||||
}
|
||||
|
||||
}
|
|
@ -67,6 +67,7 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
|
|||
|
||||
private Preference saveCurrentTrack;
|
||||
private Preference testVoiceCommands;
|
||||
private Preference localOpenstreetmapPoints;
|
||||
|
||||
private EditTextPreference applicationDir;
|
||||
private ListPreference applicationModePreference;
|
||||
|
@ -331,6 +332,8 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
|
|||
routeServiceEnabled.setOnPreferenceChangeListener(this);
|
||||
applicationDir = (EditTextPreference) screen.findPreference(OsmandSettings.EXTERNAL_STORAGE_DIR);
|
||||
applicationDir.setOnPreferenceChangeListener(this);
|
||||
localOpenstreetmapPoints = (Preference) screen.findPreference(OsmandSettings.LOCAL_OPENSTREETMAP_POINTS);
|
||||
localOpenstreetmapPoints.setOnPreferenceClickListener(this);
|
||||
|
||||
|
||||
|
||||
|
@ -778,6 +781,9 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
|
|||
helper.close();
|
||||
}
|
||||
return true;
|
||||
} else if(preference == localOpenstreetmapPoints){
|
||||
startActivity(new Intent(this, LocalOpenstreetmapActivity.class));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue