Android Tutorial
Software Setup and Configuration
Android Studio
File Structure
Components
Core Topics
Layout
View
Button
Intent and Intent Filters
Toast
RecyclerView
Fragments
Adapters
Other UI Component
Image Loading Libraries
Date and Time
Material Design
Bars
Working with Google Maps
Chart
Animation
Database
Advance Android
Jetpack
Architecture
App Publish
App Monetization
Starting a new project in Android Studio is straightforward. Here's a step-by-step guide to create a new Android project:
Open Android Studio. If you've previously opened a project, you'll see the "Welcome to Android Studio" window. If not, close the currently open project to see this window.
Click on the Start a new Android Studio project
option.
You'll be presented with a series of configuration steps:
com.example.myapp
.Kotlin
or Java
. Kotlin is now the preferred language for Android app development.Click Finish
after filling out these details.
Android Studio offers a variety of pre-made templates to get you started. For a basic application, you can choose the Empty Activity
template. Select the template and click Next
.
MainActivity
.activity_main
.Click Finish
.
After configuring your new project, Android Studio will open the project files and display them in the editor. To see your new app in action:
Shift + F10
).Your new app will run and display the default "Hello World" message or whatever content is default in the template you've chosen.
That's it! You've now successfully created a new project in Android Studio. You can start adding features, designing the user interface, and implementing the functionality you want for your app.
Adding dependencies to a new Android Studio project:
Open the app-level build.gradle
file.
Add dependencies in the dependencies
block. For example:
implementation 'com.android.support:appcompat-v7:28.0.0'
Sync the project to apply changes.