Summary 2.1
diff --git a/res/values/strings.xml b/res/values/strings.xml
index c3997c7..efd805e 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -21,18 +21,18 @@
<string name="action_update">Update</string>
<string name="drawer_open">Open Drawer</string>
<string name="drawer_close">Close Drawer</string>
- <string name="newRoute">Vytvorit novu cestu</string>
- <string name="newArea">Vytvorit novu oblast</string>
- <string name="newSector">Vytvorit novy sektor</string>
- <string name="routeName">Meno cesty:</string>
- <string name="routeSector">Umiestnenie v sektore:</string>
- <string name="routeDiff">Obtiaznost cesty:</string>
- <string name="routeLength">Dlzka cesty (v metroch):</string>
- <string name="routeBolts">Pocet isteni v ceste:</string>
- <string name="send">Odoslat</string>
- <string name="sectorName">Nazov sektora</string>
- <string name="sectorArea">Umiestnenie v oblasti</string>
- <string name="areaName">Nazov oblasti</string>
+ <string name="newRoute">Create new route</string>
+ <string name="newArea">Create new area</string>
+ <string name="newSector">Create new sector</string>
+ <string name="routeName">Route name:</string>
+ <string name="routeSector">In sector:</string>
+ <string name="routeDiff">Difficulty of route:</string>
+ <string name="routeLength">Length of route:</string>
+ <string name="routeBolts">Number of bolts:</string>
+ <string name="send">Send</string>
+ <string name="sectorName">Sector name</string>
+ <string name="sectorArea">In area</string>
+ <string name="areaName">Area name</string>
<string-array name="nav_drawer_items">
diff --git a/src/org/climbingguide/gui/FragmentCreateRoute.java b/src/org/climbingguide/gui/FragmentCreateRoute.java
index d8e9803..f961392 100644
--- a/src/org/climbingguide/gui/FragmentCreateRoute.java
+++ b/src/org/climbingguide/gui/FragmentCreateRoute.java
@@ -27,6 +27,7 @@
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
+import android.widget.Toast;
public class FragmentCreateRoute extends Fragment{
public int id;
@@ -117,6 +118,7 @@
HttpPost post = new HttpPost("http://climbingguide.madzik.sk/route.php");
try {
post.setEntity(new StringEntity(json2.toString(), CODEPAGE));
+ Toast.makeText( null, "Zaznam bol odoslany na spracovanie", Toast.LENGTH_LONG).show();
} catch (UnsupportedEncodingException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
diff --git a/src/org/climbingguide/main/MainActivity.java b/src/org/climbingguide/main/MainActivity.java
index 0b1d9f4..5e30d60 100644
--- a/src/org/climbingguide/main/MainActivity.java
+++ b/src/org/climbingguide/main/MainActivity.java
@@ -26,6 +26,7 @@
import android.app.Activity;
import android.content.Context;
+import android.content.Intent;
import android.content.res.Configuration;
import android.content.res.TypedArray;
import android.net.ConnectivityManager;
@@ -416,6 +417,9 @@
update.updateA(getApplicationContext());
update.updateS(getApplicationContext());
update.updateR(getApplicationContext());
+ Intent intent = getIntent();
+ finish();
+ startActivity(intent);
}else{
Toast.makeText(getApplicationContext(), "There is no network access", Toast.LENGTH_LONG).show();
}