Home » Android » Page 7

Android

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 »

Android TextView Example

Android system provides us TextView, from where we can display text into the screen. Although it contains text editing operations, the basic class does not allow editing, so EditText class is provided for this reason. In this example we are going to show you some commonly used TextView attributes and how to embody and handle a TextView in our Android ...

Read More »

Android SoundPool Example

When we want to create an Android application that has an Android Activity inside of which we are planning to play a sound sample, we should consider in the first place Android SoundPool class.The SoundPool class manages and plays audio resources for applications. The SoundPool helps developers to make a collection of samples, to load them into memory, not only ...

Read More »

Android Custom Components Example

Although Android provides us many built-in components, such as Button, TextView etc, it also offers us the opportunity to create our own custom widgets in order to adjust them to our needs and our requirements. Depending on the customization of the component, we can extend it to an existing built-in widget or to a class that we have created or ...

Read More »

Android Styles and Themes Example

Android gives us the opportunity to specify the format and the design of View components or screens of our app, by declaring some characteristics such as color, margin, text size etc. This is happening via a Style, which is a XML resource and it is separate from XML layouts. It isn’t wrong to say that a style is the Android’s ...

Read More »

Android Event Handling Example

Events represents a response to user’s interaction with input controls, such as press of a button or touch of the screen. Android framework places each occurring Event into a queue, which is based on FIFO (first-in first-out) logic. When an Event happens an Event Listener, which is involved with the View object, should be registered. Then, the registered Event Listener ...

Read More »

Android User Interface Controls Example

Input Controls are the View components in the user interface that the user can interact with. You can add as many as you want in your application, by declaring the appropriate XML elements in a XML layout file, which is placed in the res/layout directory of your project. In this example we are going to show the most common controls ...

Read More »

Android User Inteface Layout Example

Android Layout is a user interface for an Activity or a widget in an application, that handles the appearance of the UI components on the screen. You can specify Layouts with two ways: Declare an XML file in res/layout directory and then load it to your Activity or app widget. Android provides us XML vocabulary, which consists screen elements. Declare ...

Read More »

Publish Android Application Example

After the implementation of an Android application, the last step is to publish your app in order to be available to the users. You can sell your app or release it for free via an Android application  marketplace (like Google Play), via your website or even by distribute it directly to the users. In this example we will show how ...

Read More »

Android Bluetooth Example

If we want to exchange data between different devices through our application, Bluetooth is a way for wirelessly connection between devices that support Bluetooth. Android system provides us Bluetooth APIs, from which we can: Find paired Bluetooth devices Search for other Bluetooth devices Connect to one or more of these devices Receive and Transfer data In our example we are ...

Read More »