Hi,
I can change the "page not available" page?
example:
I start the application, but I do not have 3G or WIFI.
And, the app shows "page not available". But this error showing the URL.
I can do a 'custom error', located in 'file:///android_asset/erro.html' for exemple?
And if you have no connection, this new page (file:///android_asset/erro.html) appears.
*Sorry for my english
My aplication: ("-LINK-" is the URL for my website)
I can change the "page not available" page?
example:
I start the application, but I do not have 3G or WIFI.
And, the app shows "page not available". But this error showing the URL.
I can do a 'custom error', located in 'file:///android_asset/erro.html' for exemple?
And if you have no connection, this new page (file:///android_asset/erro.html) appears.
*Sorry for my english
My aplication: ("-LINK-" is the URL for my website)
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("WebViewer")
WebView1.LoadUrl("-LINK-")
WebView1.Width = 100%x
WebView1.Height = 100%y
End Sub
Sub activity_KeyPress (KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK Then
WebView1.Back
Return True
End If
If KeyCode = KeyCodes.KEYCODE_MENU Then
WebView1.LoadUrl("-LINK-/config.php")
Return True
End If
End Sub