Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,992,306 members, 7,289,038 topics. Date: Friday, 03 February 2023 at 03:23 PM

Basic Steps To Develop An Android Application (android Apps) - Computers - Nairaland

Nairaland Forum / Science/Technology / Computers / Basic Steps To Develop An Android Application (android Apps) (798 Views)

Windows 11 Android Apps: Everything You Should Know / Basic Electronics Course And Certification / Basic Electricals Course And Certification (2) (3) (4)

(1) (Reply)

Basic Steps To Develop An Android Application (android Apps) by Omokowa(m): 1:18am On Mar 04, 2018
Build Your First App

The following steps teach you how to build a simple Android app. You’ll learn how to create a "Hello World" project with Android Studio and run it. Then, you'll create a new interface for the app that takes some user input and opens a second screen in the app.

But before you start, there are two fundamental concepts you should understand about Android apps:

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.

The "main" activity is what starts when the user taps your app icon, but you can take the user straight into a different activity from other places, such as from a notification or even from a different app.

Other components such as broadcast receivers and services also allow your app to perform background tasks without a user interface.

After you build your first app, learn more about the other components at App Fundamentals.

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. Then the system determines which layout to use based on the current device's screen size.

If any of your app's features need specific hardware, such as a camera, you can query whether the device has that hardware at runtime and then disable the corresponding features if not. You can also set some features as required so Google Play won't allow installation on devices without them.

After you build your first app, learn more about device configurations at Device Compatibility.

With those basic concepts in mind, see below to start building your first app!

Create an Android Project
This lesson shows you how to create a new Android project with Android Studio and describes some of the files in the project.

First, be sure you have installed the latest version of Android Studio. Download Android Studio here.

In the Welcome to Android Studio window, click Start a new Android Studio project.



Or if you have a project opened, select File > New Project.

In the Create New Projectwindow, enter the following values:
Application Name: "My First App"
Company Domain: "example.com"
You might want to change the project location. Also, if you want to write a Kotlin app, check the Include Kotlin support checkbox. Leave the other options as they are.

Click Next.
In the Target Android Devicesscreen, keep the default values and click Next.
In the Add an Activity to Mobilescreen, select Empty Activity and click Next.
In the Configure Activityscreen, keep the default values and click Finish.
After some processing, Android Studio opens the IDE.

Now take a moment to review the most important files.

First, be sure the Project window is open (select View > Tool Windows > Project) and the Android view is selected from the drop-down list at the top of that window. You can then see the following files:

app > java > com.example.myfirstapp > MainActivity

This is the main activity (the entry point for your app). When you build and run the app, the system launches an instance of this Activity and loads its layout.

app > res > layout > activity_main.xml

This XML file defines the layout for the activity's UI. It contains a TextView element with the text "Hello world!".

app > manifests > AndroidManifest.xml

The manifest file describes the fundamental characteristics of the app and defines each of its components.

Gradle Scripts > build.gradle

You'll see two files with this name: one for the project and one for the "app" module. Each module has its own build.gradle file, but this project currently has just one module. You'll mostly work with the module's build.gradle file to configure how the Gradle tools compile and build your app. For more information about this file, see Configure Your Build.

To run the app, continue with this link  [url]http://www.informationsecret.com/easy-steps-on-ho…ion-android-apps/
[/url]

(1) (Reply)

IBM Just Unveiled The World’s Smallest Computer / What Is The Cost Of MTN VPS / How To Encrypt Your Windows Local Disk With A Password

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2023 Oluwaseun Osewa. All rights reserved. See How To Advertise. 578
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.