Hi again.
I updated the WebViewSettings library - fixed the error that agraham, pointed out re Boolean should have been boolean.
Then added a couple of new methods:
getSaveFormData(webView1 As WebView)
getSavePassword(webView1 As WebView)
The idea was that you'd be able to check if the settings had been applied.
Next i created a simple project to test the new library:
Sub Process_Globals
End Sub
Sub Globals
Dim WebView1 As WebView
Dim WebViewSettings1 As WebViewSettings
End Sub
Sub Activity_Create(FirstTime As Boolean)
WebView1.Initialize("")
Activity.AddView(WebView1, 0, 0, -1, -1)
WebViewSettings1.setSavePassword(WebView1, False)
WebView1.LoadUrl("http://www.b4x.com/forum/index.php")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
It WORKS!
I've tried setting the URL loaded into WebView1 to a few different forums that i am a member of.
I run the project, complete the forum login and successfully login with no prompt to save my password.
If i re-start the emulator and run the project a second time then i am not still logged in by the way.
Did you use the
setSavePassword() method BEFORE loading the webpage?
I'll PM you a link to my demo project and the new library.
Martin.