Create a new Activity in Android Studio

In this article you will learn how to create a new activity in android studio with following steps?
Submitted by Manu Jemini, on January 04, 2018

Activities hold your app together. This is where all your business login is and it also take care of which layout to show to user. Creating an activity is very simple and it can be created in many ways.

First step is to open or create an android project in you android-studio.

Android activity 1

Right click on the app directory and choose new → activity

Android activity 2

You have variety of activities to choose from. According to you need choose one. I am choosing An Empty Activity.

Android activity 3

It make a window to pop up and according to the chosen activity ask for basic information like name etc.

Android activity 4

Fill the name and other information if you want to and press FINISH.

It will open the activity automatically and corresponding layout file.

Android activity 5

Now you are all set with a poject, Thank you.

Related Tutorials


Top MCQs

Comments and Discussions!

Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© some rights reserved.