In Android,how to insert the values in database while typing in textBox?
       I created A database and Insert the Values.Its Happening while i click the Inset button.i want to insert While Am typing in TextBox.How can i do this?

Thanks in Advance.

Here my coding;

public class SixthTab extends Activity

{

	private EditText text;
	final DatabaseHelper dh=new DatabaseHelper(this);
	
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.notes);
		text = (EditText)findViewById(R.id.editText);

        		 text.setOnClickListener(new View.OnClickListener(){
		      public void onClick(View v){  
                    dh.open();
		    		String value =text.getText().toString();
		    		 long l=dh.insert(value);
		    		 dh.close();  
		}

In Android,how to insert the values in database while typing in textBox?
===

       I created A database and Insert the Values.Its Happening while i click the Inset button.i want to insert While Am typing in TextBox.How can i do this?

Thanks in Advance.

Here my coding;

public class SixthTab extends Activity

{

	private EditText text;
	final DatabaseHelper dh=new DatabaseHelper(this);
	
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.notes);
		text = (EditText)findViewById(R.id.editText);

        		 text.setOnClickListener(new View.OnClickListener(){
		      public void onClick(View v){  
                    dh.open();
		    		String value =text.getText().toString();
		    		 long l=dh.insert(value);
		    		 dh.close();  
		}
