Home » Android Core » Page 2

Tag Archives: Android Core

Android Toast Example

In Android you can use the Toast component to display short pop up messages to the user that automatically disappear in few seconds. In general a Toast message is quick way to debug you’re application, for example to check whether a button is working properly or not. In this tutorial we will show how to display a regular Toast message. Additionally ...

Read More »

Android Custom Dialog Example

In Android you can use the Dialog component, and you can customize it to your own User Interface so it can have any use you want. In this tutorial we are going to create a Dialog that will display a custom image and a text message. As we know there is no such thing by default. That means we have to make it ourselves. ...

Read More »

Android Prompt User Input Dialog Example

In Android you can use the AlertDialog component, and you can customize it to your own User Interface so it can have any use you want. In this tutorial we are going to create an AlertDialog that can accept text input for the user. As we know there is no such thing by default. That means we have to make ...

Read More »

Android Alert Dialog Example

The Alert Dialog is a very common component in all User Interfaces, when you want to inform the User about a serious decisions concerning some aspects or the flow of the Application. In this tutorial, we will learn how to display a simple Alert Dialog, where the User will decide whether to to close the Application or not.               ...

Read More »

Android Progress Bar Example

The progress Bar is a very common component in all User Interfaces, when you want to display the progress of a task that is taking up a lot of time, for example a file download. In this tutorial will create a Progress Bar Dialog to let the user know the progress and a status of a simulated file download activity. ...

Read More »

Android Analogclock And Digitalclock Example

In Android you can use android.widget.AnalogClock component to display a two-handed Analog Clock and android.widget.DigitalClock to display a Digital clock in your Application. Both of these components cannot be used to change the time. For that you may use the TimePicker component.               For this tutorial, we will use the following tools in a Windows ...

Read More »

Android Time Picker Example

Android it’s very easy to set the time using the android.widget.TimePicker component. In this tutorial we are going to see how the user can select the hour, and the minute using the android.app.TimePickerDialog which is an easy to use dialog box.                For this tutorial, we will use the following tools in a Windows 64-bit platform: ...

Read More »

Android Date Picker Example

Android it’s very easy to set the date using the android.widget.DatePicker component. In this tutorial we are going to see how the user can change the day, the month and the year using the android.app.DatePickerDialog which is an easy to use dialog box.                   For this tutorial, we will use the following tools in ...

Read More »

Android Spinner (Drop Down List) Example

In Android it’s very easy to create Drop Down Lists using the Spinner component. In this tutorial we are going to see how to set up and display a Spinner. There are two ways you can populate the Drop Down List with options. The first way is by creating a hard coded string-array resource in xml form. The second way is ...

Read More »

Android Rating Bar Example

In Android it’s very easy to accept user rating using a Rating Bar. In this tutorial we are going to see how to set up and display a Rating Bar with Stars. When the user slides over the  bar, the rating goes up or down by one Star and the selected/deselected Stars change color automatically as does the value of the rating.  ...

Read More »