0% found this document useful (0 votes)
9 views18 pages

How to create and run Android App

The document outlines the steps to create and run a basic Android application using Android Studio. It includes instructions on selecting a project type, naming the application, and designing the user interface with XML. Additionally, it explains how to set up an Android Virtual Device (AVD) for testing the application before running it on an emulator.

Uploaded by

moeezshehzad26
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views18 pages

How to create and run Android App

The document outlines the steps to create and run a basic Android application using Android Studio. It includes instructions on selecting a project type, naming the application, and designing the user interface with XML. Additionally, it explains how to set up an Android Virtual Device (AVD) for testing the application before running it on an emulator.

Uploaded by

moeezshehzad26
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 18

How to Create and Run your First Android Application

Said Muhammad
GSSC Peshawar
Steps to Create App in Android Studio

Step 1: To open Android Studio


Step 2: Choose your project.
In this, you can choose project
whichever you want to use.
Steps to Create App in
Android Studio

3. Choose Empty
Activity for our
first project and
press [Next].
Continue…
• Step 4: Now we’ll move
towards the most
important part of this
application.
– Here, give a name for
your application.
– Choose the language of
implementation, we’ll use
Java.
– And click on the [Finish]
button.
Continue…
• Step 5: Now you’ll find the following on
your screen.
Continue…
• Here, you can find the following things using the given
steps about your application:
1. Manifest files :
describe the components of the application and its
characteristics.
App -> menifests-> AndroidManifests.xml
2. XML files :
are used to describe the layout and to design the User
Interface of the Application.
In our project, it has a TextView which has text Hello
World.
app-> res->layout -> main_activity.xml
Continue…
• In XML, we can find the layout in 2 ways:
– Design
– Text
• Design part shows an easy drag and drop
feature for application layout and User
Interface designing.
• Text contains the coding part of the XML
where we can code and design the User
Interface
Continue…
Continue…
Continue….

Step 5: Now, we’ll launch our application on


an emulator and for that, we need to set AVD.
AVD is an Android virtual device that gives us
the same experience as that of a real phone.
Now for that, we will go to Tools> AVD
Manager. After this, our next step would be to
add a virtual device.
Continue…
Continue…
Continue…
• Select the
hardware
device.
Continue…
• Then select the system image.
Continue…
After everything is done, press [Finish].
Continue…
Step 6: Now we’ll run our application as follows.
1. Choose the virtual device.
Continue…
Click on the green run button.
Continue…
• Activity is the main entry
point of our application.
When we run our
application, the system
launches an instance of
our activity and load the
layout.

You might also like