Tag Archives: Getting started with Android
-
Android AlertDialog Example : Getting started with Android
By using android alert dialog example we can perform some action according to that dialog. Android AlertDialog Example :- To ask user permission for “Exit ?” we can use Android AlertDialog with Yes or No Button. So, by clicking Yes we can Exit the Application and by clicking No we ...
Continue Reading... -
Android Spinner Example : Getting started with Android
In Android, Spinner is nothing but a combo box or list box. It lets you viewing multiple items and allows you to select one item from the list. Edit Your XML code like this [crayon-5e19337d48d3d462233668/] Your Java Class code should look like this [crayon-5e19337d48d42704283670/] The Output ...
Continue Reading... -
Android RadioButton Example : Getting started with Android
RadioButton is used to select any one option from the given group. In Android by using RadioGroup only we can use RadioButton. We can add any number of RadioButtons to a single RadioGroup. we can add any number of RadioGroup to a single Layout. RadioButton Example :- Your XML Code should look ...
Continue Reading... -
Android CheckBox Example : Getting started with Android
Android checkbox is used to select more than one option at a time. Ex: – In an admission form we may need to select both diploma & BE in Graduate option. For this we can use checkbox which will enable us to select multiple options. CheckBox Example: – Your XML code should look ...
Continue Reading... -
Android Button onClick Event Example : Getting started with Android
Today let us see an example for the Android button onclick. When any user clicks on button onClick event of Android Button is executed checkout the following code. [crayon-5e19337d493d3554081675/] Onclick Action:- Edit your Java code like this [crayon-5e19337d493d8681017998/] By ...
Continue Reading... -
Android Edittext Inputtype Tutorial : Getting started with Android
Edittext inputtype is used to set your input type for edittext. Ex:- You can set your edittext inputtype as ‘Phone’. So that user can able to type only numbers. If it is ‘Time’ it will allow only time related characters to be entered. Edittext Inputtypes are:- text ...
Continue Reading...