C C++ Java Data Structure Python JavaScript CSS Ajax PL/SQL PHP Puzzles C programs C++ programs Java programs

Home » Android

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.



Advertisements




Liked this article? Do share with your friends :)


COMMENTS