๐Ÿ“… Day 4: Your First Android App โ€“ A Step-by-Step Guide for Beginners

Welcome to Day 4 of the 90-Day Android Developer Roadmap at HandsOnAndroid! ๐Ÿ‘‹

In Day 1, we covered the roadmap.
In Day 2, you installed Android Studio.
In Day 3, we chose Kotlin.

Today, itโ€™s time to build your first Android app! ๐ŸŽ‰


๐Ÿ› ๏ธ Step-by-Step: Create Your First Android App

๐Ÿ”น Step 1: Open Android Studio

Launch Android Studio and click โ€œNew Project.โ€

๐Ÿ”น Step 2: Select โ€œEmpty Activityโ€

Choose โ€œEmpty Activityโ€ โ†’ click Next

๐Ÿ”น Step 3: Configure the App

  • Name: HelloAndroid
  • Language: Kotlin
  • Minimum SDK: API 21 (Lollipop)
  • โœ… Click Finish

๐Ÿ”น Step 4: Understand the Project Structure

  • MainActivity.kt: Your entry point (Kotlin file)
  • res/layout/activity_main.xml: Your appโ€™s layout (UI)
  • AndroidManifest.xml: App declaration info

๐Ÿ”น Step 5: Update Layout XML

Open activity_main.xml and replace the content:

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello, Android!"
android:layout_gravity="center"
android:textSize="24sp" />

๐Ÿ”น Step 6: Run the App

Click โ–ถ๏ธ Run โ†’ Select Emulator โ†’ See the magic! ๐ŸŽ‰


๐Ÿ“ท Preview

Once the app runs on the emulator, youโ€™ll see:

๐ŸŸข โ€œHello, Android!โ€ centered on a white screen.

Thatโ€™s it โ€” your first Android app is live! ๐Ÿš€


๐Ÿง  What You Learned Today

  • Creating a new Android project
  • Basic Kotlin Activity + XML layout
  • Running your app in an emulator

๐Ÿงญ Continue Your Android Developer Journey

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top