'android sqlite database search without buttonclick

Anyone please solves my problem. I'm created a database (SQLite) with 4 columns i.e.

|-----|------|---------|--------|
|  ID | NAME | CODE    | AGE    |
|-----|------|---------|--------|
|-----|------|---------|--------|

My activity is to retrieve name from database and display in textview when enter the code in edittext. Not using button click.

|EditText|        |Textview |

if name-jim code-1200 age-38 when i enter 1200(code) in EditText then display jim(name) in Textview sametime.

Please help me to write a simple method Thank you



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source