Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid How can i know Edit text is done being edited?
    primarykey
    data
    text
    <p>How do I know when my edit text is done being edited? Like when the user selects the next box, or presses the done button on the soft keyboard.</p> <p>My Code is Here</p> <pre><code>EditText.setOnFocusChangeListener(new View.OnFocusChangeListener() { public void onFocusChange(View arg0, boolean arg1) { int tag=(Integer) arg0.getTag(); final EditText Caption = (EditText) arg0; previous_Meter_Reading = new HashMap&lt;String, String&gt;(); previous_Meter_Reading = c.get(tag); String pre =previous_Meter_Reading.get("previousMeterReading"); previous =Integer.parseInt(pre); Log.i("out",pre); if (!arg1 &amp;&amp; ! Caption.getText().toString().equals("")) { int pos=arg0.getId(); Log.i("Tag", arg0.getTag().toString()); Current = Integer.valueOf(Caption.getText().toString()); if(Current&lt;previous){ AlertDialog.Builder builder = new AlertDialog.Builder( context); builder.setTitle("WARNING"); builder.setIcon(android.R.drawable.ic_dialog_alert); builder.setMessage("Current value should be greater"); builder.setPositiveButton("ok", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { // TODO Auto-generated method stub } }); AlertDialog diag = builder.create(); diag.show(); } Toast.makeText(context, "Focus Changed",Toast.LENGTH_SHORT); } } }); return view; } </code></pre> <p>after each character is entered my alertbox is popup. basically i want to get input text when i change the focus to next EditText box and get the value of lost focus edittext and compare with prevoius value can any one give any solution for that Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload