diff --git a/DataExtractionOSM/src/com/osmand/ToDoConstants.java b/DataExtractionOSM/src/com/osmand/ToDoConstants.java index 64015de9cd..3771acda41 100644 --- a/DataExtractionOSM/src/com/osmand/ToDoConstants.java +++ b/DataExtractionOSM/src/com/osmand/ToDoConstants.java @@ -13,11 +13,8 @@ public class ToDoConstants { */ public int DESCRIBE_ABOUT_AUTHORS = 8; - // pinch zoom, fix bugs with test data - // TODO ANDROID - // Prepare update v 0.2.1: screenshots, android description, sites(osmand/wiki), US/canada indexes & poi/transport.index // 61. Provide route information for YOURS (calclate turns/angle/expected time). // Fix some missing turns in CloudMade (for secondary roads wo name). Add them (if dist to prev/next turn > 150m) [dacha] diff --git a/OsmAnd/AndroidManifest.xml b/OsmAnd/AndroidManifest.xml index d540a38e9e..9203893c65 100644 --- a/OsmAnd/AndroidManifest.xml +++ b/OsmAnd/AndroidManifest.xml @@ -1,8 +1,8 @@ + package="com.osmand" android:versionName="0.2.1" android:versionCode="4"> + android:debuggable="false" android:name=".activities.OsmandApplication" android:description="@string/app_description"> diff --git a/OsmAnd/res/values-ru-rRU/strings.xml b/OsmAnd/res/values-ru-rRU/strings.xml index b7f5de9a83..39981fdf6d 100644 --- a/OsmAnd/res/values-ru-rRU/strings.xml +++ b/OsmAnd/res/values-ru-rRU/strings.xml @@ -1,5 +1,9 @@ + Продолжить + Загрузить индексы + Спасибо за то, что выбрали OsmAnd. \n +Для полноценного использования приложения вам потребуются файлы индексы, которые необходимо загрузить (Настройки/Данные) или подготовить. После загрузки вам будет доступен : поиск по адресу, поиск POI, поиск транспорта. Поиск сигнала... Искать возле видимой карты Искать рядом diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index 3f5b3c453d..057e6b5e66 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -1,5 +1,8 @@ + Continue + Download indexes + Thank you for choosing OsmAnd. \nTo be able to use all features of application you need index files, which you can download (Settings/Data) or prepare by yourself. After that you can use : search by address, search POI, search transport. Searching signal... Search near last map location Search nearby diff --git a/OsmAnd/src/com/osmand/activities/MainMenuActivity.java b/OsmAnd/src/com/osmand/activities/MainMenuActivity.java index a425cc264e..b4d1e5e897 100644 --- a/OsmAnd/src/com/osmand/activities/MainMenuActivity.java +++ b/OsmAnd/src/com/osmand/activities/MainMenuActivity.java @@ -13,7 +13,9 @@ import android.app.Activity; import android.app.AlertDialog; import android.app.ProgressDialog; import android.app.AlertDialog.Builder; +import android.content.DialogInterface; import android.content.Intent; +import android.content.SharedPreferences; import android.os.Bundle; import android.os.Environment; import android.text.format.DateFormat; @@ -33,18 +35,17 @@ import com.osmand.activities.search.SearchActivity; public class MainMenuActivity extends Activity { + private static final String FIRST_TIME_APP_RUN = "FIRST_TIME_APP_RUN"; //$NON-NLS-1$ private static boolean applicationAlreadyStarted = false; private static final String EXCEPTION_PATH = "/osmand/exception.log"; //$NON-NLS-1$ private static final String EXCEPTION_FILE_SIZE = "/osmand/exception.log"; //$NON-NLS-1$ + private Button showMap; private Button settingsButton; private Button searchButton; private Button favouritesButton; - - - public void startApplication(){ @@ -99,6 +100,8 @@ public class MainMenuActivity extends Activity { requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.menu); + + showMap = (Button) findViewById(R.id.MapButton); @@ -148,6 +151,24 @@ public class MainMenuActivity extends Activity { // }); startApplication(); + + SharedPreferences pref = getPreferences(MODE_WORLD_WRITEABLE); + if(!pref.contains(FIRST_TIME_APP_RUN)){ + pref.edit().putBoolean(FIRST_TIME_APP_RUN, true).commit(); + Builder builder = new AlertDialog.Builder(this); + builder.setMessage(R.string.first_time_msg); + builder.setPositiveButton(R.string.first_time_download, new DialogInterface.OnClickListener(){ + + @Override + public void onClick(DialogInterface dialog, int which) { + startActivity(new Intent(MainMenuActivity.this, DownloadIndexActivity.class)); + } + + }); + builder.setNegativeButton(R.string.first_time_continue, null); + + builder.show(); + } } protected void showWarnings(List warnings) {