ANDROID APPLICATION

Build your first app

his section describes how to build a simple Android app. First, you learn how to create a “Hello, World!” project with Android Studio and run it. Then, you create a new interface for the app that takes user input and switches to a new screen in the app to display it.

Before you start, there are two fundamental concepts that you need to understand about Android apps: how they provide multiple entry points, and how they adapt to different devices.

Apps provide multiple entry points

Android apps are built as a combination of components that can be invoked individually. For example, an activity is a type of app component that provides a user interface (UI).

The “main” activity starts when the user taps your app’s icon. You can also direct the user to an activity from elsewhere, such as from a notification or even from a different app.

Other components, such as broadcast receivers and services, allow your app to perform background tasks without a UI.

Apps adapt to different devices

Android allows you to provide different resources for different devices. For example, you can create different layouts for different screen sizes. The system determines which layout to use based on the screen size of the current device.

If any of your app’s features need specific hardware, such as a camera, you can query at runtime whether the device has that hardware or not, and then disable the corresponding features if it doesn’t. You can specify that your app requires certain hardware so that Google Play won’t allow the app to be installed on devices without them.

Oops, This page is under constraction

We will get back to you after the work of this page finished. We appreciate your patience.

Scroll to Top