This is a simple piece of code to add items to spinner dynamically through edittext and button.