When i call the progressDialog=ProgressDialog.show(this, "Working..", "Searching!", true,false);
from onKeyListener progressDialog.dismiss()
is not working properly and i can't stop `progressDialog without force closing.However when i use entire same code with a button and onClickListener it works like charm.Is this some kind of bug or am i missing something ?