1. Start a New Project
  1. Open Android Studio.
  2. Click "New Project" on the Welcome screen.
  3. Select a template (e.g., "Empty Activity") for a simple app.
  4. Click Next.

When creating a new project in Android Studio, it is recommended to select 'Empty Activity' as the starting template. Avoid choosing other options, such as 'Empty Views Activity' or templates with pre-defined code (e.g., Kotlin-based templates), as they often include unnecessary boilerplate code that might not align with the specific requirements of your project.


After clicking the Next button, you need to configure the following details:
  • Name: Enter a name for your application that reflects its purpose (e.g., "MyFirstApp").
  • Package Name: This serves as your project's unique identifier (e.g., com.example.myfirstapp).
  • Save Location: Specify the folder where your project will be saved.
  • Language: Select Java as the programming language.
Do not modify the Minimum SDK or any other settings.


After this step, you will have two key files: MainActivity.java and activity_main.xml.

  • The XML file (activity_main.xml) is used for designing the user interface, such as adding buttons, text fields, and other UI components.
  • The Java file (MainActivity.java) is used to define the functionality and operations for your app, such as handling button clicks, text input, and other interactions.
That's it! If you have any questions or doubts, feel free to leave a comment below. We’ll be happy to respond to your queries. You’re also welcome to share your suggestions in the comment box. 😊