Home » Android » Page 6

Android

Android MediaPlayer Example

The Android multimedia framework includes support for playing variety of common media types, so that you can easily integrate audio, video and images into your applications using MediaPlayer APIs. Android MediaPlayer class can be used to control playback of audio/video files and streams. So, in this example, we will make a Media Player Activity that can play an mp3 audio ...

Read More »

Android RadioGroup Example

RadioGroup is a widget in Android which groups RadioButtons. More specifically, the use of RadioGroup provides the capability of selecting only one RadioButton from the set. When the user chooses one RadioButton, the previous one that was selected, becomes automatically unchecked. In our example we are going to show you the use of RadioGroup in the Android apps.     ...

Read More »

Android FrameLayout Example

FrameLayout represents a simple layout for the user interface of Android applications. It is usually used for displaying single Views at a specific area on the screen or overlapping its child views. In our example we are going to show how you can add and handle FrameLayout in your application. For this tutorial, we will use the following tools in ...

Read More »

Android Accelerometer Example

The Android platform provides several sensors that let you monitor the motion of a device. Some of these sensors are hardware-based and some are software-based. The Android platform supports three broad categories of sensors: • Motion sensors • Environmental sensors thermometers. • Position sensors Motion sensors are useful for monitoring device movement, such as tilt, shake, rotation, or swing. In ...

Read More »

Android Fragment Tabs Example

As title clarifies, today we ‘re gonna see how to implement a Tab Layout using Fragments. Regarding the previous versions of Android, a Tab Layout could be implemented using TabWidget and TabHost, but now, these are deprecated, so we have to find another workaround, if we don’t want to directly use Google’s solution. So, today, another easy example: we ‘ll ...

Read More »

Android Login Example

Hi there! Today we ‘re gonna see another easy Android example, regarding a login screen. What we are going to implement in this example, is a simple login screen, with username and password prompt and a login button. Let’s give the user the ability to submit wrong credentials for 3 times only. If all three fail, application automatically rejects login ...

Read More »

Android VideoView Example

When we want to create an Android application that has an Android Activity inside of which we are planning to play a video file, we should consider in the first place Android VideoView class. The VideoView class manages and displays a video file for applications and can load images from various sources (such as resources or content providers), taking care ...

Read More »

Android SeekBar Example

In Android, a SeekBar is a ProgressBar element’s extension that allows the selection of integer values using a natural user interface. SeekBar has a thumb that can be slided in order to choose a value between 0 and some maximum that can be set from the developer. For the need of this example, we will use the following tools in ...

Read More »

Android SlidingDrawer Example

SlidingDrawer represents a widget, where we can use in our Android applications. SlidingDrawer has the ability to hide and/or appear content when the user drags a handle. More specifically, it includes two basic views: the handle where the user can drag. the hidden content that is associated with the handle and it is shown up when the user drags the ...

Read More »

Android EditText Example

Android system supports EditText, which is a subclass of TextView supplied with text editing operations. We often use EditText in our Android applications in order to provide an input or text field, especially in forms. In this example we are going to show you some commonly used EditText xml attributes and how to embody and handle an EditText in our ...

Read More »