I want to write a form proxy in my app. The html file is stored locally and the form code is
<form action="custom" method="POST" />
My custom WebView
should handle the action tag differently. So custom should be redirected to a different URL, depending on user settings in my app.
I wrote a custom WebView
and where I override postUrl
, but it is never fired. I also tried a custom WebViewClient
and override shouldOverrideUrlLoading
, but this is also not fired.
Which method should I override to change my post url and the CONTENT-TYPE
for my formular?
Edit: I found https://code.google.com/p/android/issues/detail?id=9122 and I thing nobody found a solution for this problem. That's really bad.