1

I want to get header status code in webview. For example if status code is 200, do it or status code is 404, do other thing. But I didn't get header status code. Is webview allow it? If it allows , how?

Emrah Şentürk
  • 107
  • 1
  • 6
  • 10
  • possible duplicate of [Is there a way to get status code of the webpage loaded in android webveiw?](http://stackoverflow.com/questions/12635634/is-there-a-way-to-get-status-code-of-the-webpage-loaded-in-android-webveiw) – Jim G. Sep 11 '13 at 15:49

1 Answers1

1

I posted an answer here that used a simple HTTP request to check the status. If status = 200 GOOD! Load remote URL to webview, else load local HTML page from assets.

Community
  • 1
  • 1
gman413
  • 159
  • 7