Android: How can I hide the softkeyboard when the input was made ?

Just add the two lines into your code: [java] InputMethodManager manager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); manager.hideSoftInputFromWindow(editText.getWindowToken(), 0); [/java]  

Android: get specific JSON attribute

When accessing http://headers.jsontest.com/ the following content is provided: The Goal is to extract the values for  Host and User-Agent. first of all make sure that AndroidManifest.xml contains: Content of MainActivity.java: extract from Logcat shows: