CopyPastor

Detecting plagiarism made easy.

Score: 0.7502171946126361; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2018-10-20
by Vishal Sharma

Original Post

Original - Posted on 2014-12-01
by Prashant Maheshwari Andro



            
Present in both answers; Present only in the new answer; Present only in the old answer;

**Try this.**
InputMethodManager inputManager = (InputMethodManager) getApplicationContext() .getSystemService(Context.INPUT_METHOD_SERVICE);
inputManager.hideSoftInputFromWindow(this.getCurrentFocus().getWindowToken(), InputMethodManager.RESULT_UNCHANGED_SHOWN);
**Use Below Code**
your_button_id.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { try { InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0); } catch (Exception e) {
} } });

        
Present in both answers; Present only in the new answer; Present only in the old answer;