This will return the int
value:
response.getStatusLine().getStatusCode()
More Related Contents:
- How to send a JSON object over Request with Android?
- accepting HTTPS connections with self-signed certificates
- How to send POST request in JSON using HTTPClient in Android?
- How to add Apache HTTP API (legacy) as compile-time dependency to build.grade for Android M?
- Android: AsyncTask to make an HTTP GET Request?
- URLConnection or HTTPClient: Which offers better functionality and more efficiency?
- Android: Volley HTTP Request custom header
- HttpDelete with body
- How to upload file using Volley library in android?
- Http Status Code in Android Volley when error.networkResponse is null
- WebView, add local .CSS file to an HTML page?
- android httpclient hangs on second request to the server (connection timed out)
- ANDROID : Share session between Webview and httpclient
- Android HTTP Get
- How to prevent Android from returning a cached response to my HTTP Request?
- HonyComb and DefaultHttpClient
- Reusing SSL Sessions in Android with HttpClient
- Xamarin Android issue connecting via HTTPS to site with self-signed certificate: “Trust anchor for certification path not found.”
- Example of how to download JSON from server?
- Android HttpClient and HTTPS
- Error: ANDROID_HOME is not set and “android” command not in your PATH. You must fulfill at least one of these conditions.
- How to add a custom button state
- Do I need all three constructors for an Android custom view?
- What is the maximum amount of RAM an app can use?
- Android emulator screen fills up only some fraction part of actual android emulator screen
- android widget on click event
- How can I change the ringtone in android programmatically?
- emulator: emulator window was out of view and was recentered
- How is it possible to know what’s spotify is playing from an external Android app?
- Android WebView UTF-8 not showing