Android

Android Tutorial: Event Listeners

Android Tutorial: Event Listeners

In this article, you will learn how to handle events and write event listeners. Most Android programs are interactive. Event Listeners The user can interact with the application easily thanks to the event-driven programming paradigm the Android framework offers. Examples of events that may occur when the user is interacting with an activity are click,…

Android Tutorial: Layouts

Android Tutorial: Layouts

Layouts are important because they directly affect the look and feel of your application. Technically, a layout is a view that arranges child views added to it. Android comes with a number of built-in layouts, ranging from LinearLayout, which is the easiest to use, to RelativeLayout, which is the most powerful. This article discusses the…

Android Tutorial: UI Components

Android Tutorial: UI Components

One of the first things you do when creating an Android application is built the user interface (UI) for the main activity. This is a relatively easy task thanks to the ready-to-use UI components that Android provides. This article discusses some of the more important UI components. Overview The Android SDK provides various UI components…

Android Tutorial: Activity Related Intents

Android Tutorial: Activity Related Intents

In the article Activity Related Intents, you learned that you can start a new activity by passing an intent to the startActivity method. You can also call startActivityForResult if you want a result from the invoked activity. Related article: Android Tutorial: The Activity Lifecycle Here is the code that activates an activity in the project:…

Android Tutorial: Creating Another Activity

Android Tutorial: Creating Another Activity

The main activity of an Android application is started by the system itself when the user selects the app icon from the Home screen. In an application with multiple activities, it is possible (and easy) to start another activity. In fact, starting an activity from another activity can be done simply by calling the startActivity…

Android Tutorial: The Activity Lifecycle

Android Tutorial: The Activity Lifecycle

In this tutorial, we see about The Activity Lifecycle. The first application component that you need to get familiar with is the activity. An activity is a window containing user interface (UI) components that the user can interact with. Starting an activity often means displaying a window. An activity is an instance of the android.app.Activity…

Android Tutorial: Creating An Application

Android Tutorial: Creating An Application

Creating an Android application with Android Studio is as easy as a few mouse clicks. This section shows how to create a Hello World application, package it, and run it on the emulator. Make sure you have installed the Android SDK and Android Studio by following the instructions in the previous section Android Tutorial: Environment…

Android Tutorial: The Application Structure

Android Tutorial: The Application Structure

Overview Now, after the little excitement of having just run your first Android application, let’s go back to Android Studio and take a look at the structure of an Android application. Figure 1.1 shows the left treeview that contains the project components. We recommend for the previous tutorial Android Tutorial: Creating An Application. There are…

Android Tutorial: Environment Setup

Android Tutorial: Environment Setup

You need the Android Software Development Kit (SDK) to develop, debug and test your applications. The SDK contains various tools including an emulator to help you test your applications without a physical device. Currently, the SDK is available for Windows, Mac OS X and Linux operating systems. See more about android os (wiki). Environment Setup…