Tutorials, how to’s with large content

  1. Home
  2. chevron_right
  3. Tutorial
  4. (Page 7)

Detect when Done key is pressed

If you want to detect when a key from soft keyboard is pressed, like Done key, you can use the following code: mEditText = (EditText)findViewById(R.id.edit); mEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public…
Read More

Android How To Make an AlertDialog

Snippets, Tutorial
No Comments
To make an AlertDialog you have to write this code: AlertDialog.Builder alertDelete = new AlertDialog.Builder(ListsActivity.this); //HERE YOU WILL WRITE THE MESSAGE YOU WANT alertDelete.setMessage(R.string.delete_confirm); //HERE IS THE POSITIVE BUTTON. YOU…
Read More