If you’re new to Android development, Create Your First Android App may seem intimidating. The good news? It’s much easier than you think—especially with tools like Android Studio simplifying most of the heavy lifting.
In this beginner-friendly tutorial, you’ll learn how to create your first Android app from scratch, understand how the files work together, and even run your app on a real device or an emulator.
By the end of this guide, you’ll have a functional Android app and the confidence to start exploring more advanced features.
Let’s begin!
What You’ll Need
Before you start, make sure you have:
- A Windows, macOS, or Linux PC
- The latest version of Android Studio
- Some basic familiarity with computers
- No prior coding experience required – this guide is beginner-friendly!
Step 1: Install Android Studio
Android Studio is Google’s official IDE (Integrated Development Environment) for Android development. It includes everything you need to build, test, and publish Android apps.
Download Android Studio:
Visit the official Android developer website and download the installer for your operating system.
Once installed, Android Studio includes:
- Code editor
- Android SDK
- Emulator
- Pre-built app templates
- Gradle build system
After installation, open Android Studio. You’ll be greeted with the Welcome Screen, where you can start your first project.
Step 2: Create a New Android Project
- On the welcome screen, click New Project
- Choose the template “Empty Activity”
(This gives us a simple starting point without extra UI components) - Click Next
Now fill in the basic project details:
- Name: MyFirstApp
- Package name: com.example.myfirstapp
- Language: Java or Kotlin
(Kotlin is now recommended for modern Android apps) - Minimum SDK: Android 5.0 (Lollipop) or higher
Click Finish.
Android Studio will now generate your project files and set up everything automatically.
Step 3: Understanding the Project Structure
When the project loads, the left side panel shows your folders. The important ones are:
java/
Contains your Kotlin/Java source code — your app’s logic.
res/
Contains all visual resources, including:
- Layout files (XML)
- Images
- Colors
- Icons
- Strings
AndroidManifest.xml
Defines essential app information:
- App name
- Permissions
- Activities
- Themes
activity_main.xml
This is your main screen’s UI layout.
MainActivity.kt / MainActivity.java
This file controls what your app does when users interact with it.
Step 4: Designing Your App’s UI (activity_main.xml)
You can design your UI in two ways:
- Design View: Drag-and-drop buttons, text, etc.
- Code View: Edit XML manually
Let’s add a simple message and button.
Replace the existing XML with:
<TextView
android:id="@+id/welcomeText"
android:text="Welcome to My First App!"
android:textSize="24sp"
android:layout_marginBottom="20dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<Button
android:id="@+id/btnClick"
android:text="Click Me"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
This gives you:
✔ A welcome message
✔ A clickable button
Step 5: Adding Your First Functionality
Open MainActivity.kt (or .java):
package com.example.myfirstapp
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val welcomeText = findViewById<TextView>(R.id.welcomeText)
val clickButton = findViewById<Button>(R.id.btnClick)
clickButton.setOnClickListener {
welcomeText.text = "You clicked the button!"
}
}
}
What this code does:
- Finds the TextView and Button you added
- Waits for a click
- Changes the on-screen text when clicked
This is your app’s first interaction!
Step 6: Running Your App
Option A: Using the Android Emulator (built into Android Studio)
- Click Device Manager
- Create a Virtual Device (e.g., Pixel 4)
- Choose an Android version
- Click Run
The emulator will boot up and display your app.
Option B: Using a Real Android Device
- Go to your phone’s Developer Options
- Enable USB Debugging
- Connect your device to your computer
- Select your device from the Run menu
- Click Run
Your app will launch instantly on your phone.
Step 7: Congrats! You Built Your First Android App
At this point, you have created a fully functioning Android application that:
✔ Displays text
✔ Responds to user input
✔ Runs on emulator or device
✔ Uses real UI components
From here, you can explore:
- Input fields
- Navigation between screens
- Saving data
- Working with APIs
- Firebase integration
- Animations
- Material UI components
Your foundation is now strong enough to grow your project into anything you imagine.

