Android Question How to Hide any WebView error?

RicardoSantanna

Member
Licensed User
Longtime User
Hello averyone!

I don't wanna show my URL inside webview when it receives connection error.
How to do that? using reflection or not.
thx
 
Last edited:

RicardoSantanna

Member
Licensed User
Longtime User
Hi Guys.

ReceivedError never fired, i solved my problem using:


Sub CheckConnection As BooleanDim r AsReflector
r.Target = r.GetContext
r.Target = r.RunMethod2("getSystemService", "connectivity", "java.lang.String")
r.Target = r.RunMethod("getActiveNetworkInfo")
If r.Target <> NullThen
Return r.RunMethod("isConnectedOrConnecting")
EndIf
Return False
End Sub

Thank you all for help-me.
:)
 
Upvote 0
Top