I'm developing an Android application and I use a WebView to embed forms into my application. My problem is that android has a soft keyboard and when the user presses 'go' on this keyboard it submits the form. How can I prevent this from happening? I did a power search on google but I did not find any solutions.
Asked
Active
Viewed 4,233 times
2 Answers
2
Ok in the meantime i got a very simple solution: In the manifest XML:
<activity android:name="..."
...
android:imeOptions="actionSend|flagNoEnterAction"
...
</activity>
This way the 'go' button got replaced by 'done' and it hides the keyboard.
Adam Arold
- 27,872
- 21
- 103
- 189
1
Create a WebViewClient class and register it with your WebView.
This post discusses this: Android - how to intercept a form POST in android WebViewClient on API level 4
Community
- 1
- 1
Peter Knego
- 79,504
- 10
- 122
- 151
-
Thanks for the quick response. By the way I already got my own client running. :) – Adam Arold Feb 24 '11 at 10:24