Android development

Android First Example to Developer an app ( Hello Android )

helloworld8
691views

Android First Example to Developer an app ( Hello Android  )

In this Article, I am sharing how to create a simple android application. we are creating a simple empl. Using android studio.

helloworld8

Step1: Start Your Android Studio.

helloworld1

Step2: Create an Activity in the android studio. and select language java and Kotlin. Kotlin officially announces kotlin is officially language for android mobile App development  

helloworld2

Step 3:  Select the API level of application.

helloworld3

Step 4:  select the activity to mobile, it specifies the default layout for Applications.

helloworld4

Step 5: enter the Activity Name and click finish. After finishing the Activity configuration, Android Studio auto-generates the activity class in this activity have a Java file and XML file. Now an android project has been created. You can explore the android project and see the simple program, it looks like this:

hello word1

Detail about all folder and file in android project Folder, File & Description

 

1.  Java File.

In java file contains the java source code of your project. By default, it includes a MainActivity.java java file having an activity java class that runs when your app is launched using the app icon.

2. res/drawable

in the drawable folder is to store the image, icon, drawable res file to draw an object in the layout screen. This is a directory for drawable objects that are designed for high-density screens.

3. res/layout

This is a directory file that defines your app’s UI. In this layout file to design your screen with XML.

4. res/values

This is a directory for other various XML files that contain a collection of resources, such as text strings and colors code definitions, and theme style.

5. AndroidManifest.xml 

Manifest is the heart of the Android app. In manifest file contains all activity of our app. and defined the app launcher screen.

6. Build.gradle

This is an auto-generated application build file which contains compileSdkVersion, buildToolsVersion, application Package name, minSdkVersion, targetSdkVersion, App versionCode and versionName. and additional Library. 

Step 6: Run your project to emulate or attached device.

helloworld7

Show the app on your device like these.

helloworld8

 

 

Welcome to my blog! I’m Ritu Malik, and here at Codeplayon.com, we are dedicated to delivering timely and well-researched content. Our passion for knowledge shines through in the diverse range of topics we cover. Over the years, we have explored various niches such as business, finance, technology, marketing, lifestyle, website reviews and many others.