android - How to create a keypad lock to an app? -


I'm searching for a program but it's nothing but the keypad lock program.

I have a program for which I have to set a keypad lock in the form of security, so that you can help me. How to lock program keypad?

If you want to hide the soft keypad (touch keyboard that you use to screen There are some options to try.

Option 1: You can hide soft keyboards, if you are talking about this, about it. First you need to get a view within your current window, or create one

  view v = findViewById (R.id.view_id); // or something like EditText mEditText = (EditText) findViewById (R.id.view_id);  

Or if you do not have any views in the window, create a new view

  see V = new view (this);  

Using that view, you can initialize an input methodman, get a window token through your view, and then force your keyboard to hide. Call on your Inuprophythm Manager for

  Input-method manager imm = (Input Methodmanager) getSystemService (Event.INPUT_METHOD_SERVICE); Imm.hideSoftInputFromWindow (v.getWindowToken (), 0);  

OR

Option 2: Set the keyboard hidden by your Window Manager

  GetWindow () .setSoftInputMode (Window Manager, Layout Parachomas. Esofiiiini), URL;  

OR

Option 3: Announce the hidden keyboard in your manifest for your activity / application


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -