Click here to Skip to main content
15,070,139 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I need to develop an android app such that when it is activity it will block the android keyboard. so that the user cannot able to provide any inputs there by prevent them from sending text messages or chatting.
Is it possible to block the keyboard like that. how to implement it. Please Help me. Also I need to know is it possible to block a particular app from opening.
Posted

1 solution

Keyboard shows when you click EditText. So you just need to disable the keyboard:
Java
EditText.setInputType(InputType.TYPE_NULL)
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900