Disable future dates from DatePickerDialog in Android

As we already know DatePickerDialog will be used to allow user to select date. It is useful when user wants to select Date of Birth or Start Date or End Date etc.

Here is the small code snippet of creating DatePickerDialog.

Continue Reading

ArrayAdapter in AlertDialog

We can always use ListView or RecyclerView for selection from list of items, but if we have small amount of choices and among those choices we want user to select one, we can use AlertDialog.Builder setAdapter.

Tip : ArrayAdapter in AlertDialog