diff --git a/app/src/main/java/xi/org/xispeech/MainActivity.java b/app/src/main/java/xi/org/xispeech/MainActivity.java index 9c2f5f7..0c0ef58 100644 --- a/app/src/main/java/xi/org/xispeech/MainActivity.java +++ b/app/src/main/java/xi/org/xispeech/MainActivity.java @@ -122,10 +122,10 @@ public void onActivityResult(int requestCode , int resultCode, Intent data) { public void sendResult( String result){ SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this); - String url = sharedPrefs.getString("URL", "h"); + String url = sharedPrefs.getString("URL", "http://192.168.1.139:9001/api"); HttpClient httpClient = new DefaultHttpClient(); // replace with your url - HttpPost httpPost = new HttpPost("http://192.168.1.139:9001/api"); + HttpPost httpPost = new HttpPost(url); //Post Data