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,265 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
        
- 29,285
 - 22
 - 112
 - 207
 
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,991
 - 11
 - 123
 - 154
 
- 
                    Thanks for the quick response. By the way I already got my own client running. :) – Adam Arold Feb 24 '11 at 10:24