Our First Application:
This is my second post and in this I'll be teaching you to make your first application.
Let's get started.
1)Open your Android Studio application. This window will open. This may take up to few minutes.
2)Click on new Start a new Android Studio project .
This is what you will get:

Add Application name you want,
Company domain is your website link or you email address
And Project location is where you want to store your Android Projects.
By default, the storage path of the app is inside your C drive followed by android and then projects.
It's recommended that you create a new folder in another drive for Android Applications.
Press Next.
3)Next window lets you choose the device configurations for which you are making the application for.
Let's go with the default one. Default is the one which is maximum supported. Click next

4)Next window is for choosing the basic template you want for your application.
We'll go for the Empty one so that you can learn it entirely. Click on Next.

5)Next window is for giving name to the basic template that you had given chosen.
Let's go with the default name that is MainActivity.
Click on Finish.

6)Now, you'll be redirected to your application building window.
Here, you can see that there are two tabs opened.
a)MainActivity.java
b)activity_main.xml
a)MainActivity.java : This is the java program which you will be writing for all the components and it's functioning. For example: If you want a Text to be changed on Button
click, you can code it here.
Open activity_main.xml:
b)Activity_main.xml
This is preview of your application that is how your application will look when you'll launch it.
Below the preview you can see two tabs : which are "Design" and "Text".
Now we are on the design tab.
Design is basically just drag and drop.
You can drag and drop components here from the palette.
2)Click on new Start a new Android Studio project .
This is what you will get:
Add Application name you want,
Company domain is your website link or you email address
And Project location is where you want to store your Android Projects.
By default, the storage path of the app is inside your C drive followed by android and then projects.
It's recommended that you create a new folder in another drive for Android Applications.
Press Next.
3)Next window lets you choose the device configurations for which you are making the application for.
Let's go with the default one. Default is the one which is maximum supported. Click next
4)Next window is for choosing the basic template you want for your application.
We'll go for the Empty one so that you can learn it entirely. Click on Next.
5)Next window is for giving name to the basic template that you had given chosen.
Let's go with the default name that is MainActivity.
Click on Finish.
6)Now, you'll be redirected to your application building window.
Here, you can see that there are two tabs opened.
a)MainActivity.java
b)activity_main.xml
a)MainActivity.java : This is the java program which you will be writing for all the components and it's functioning. For example: If you want a Text to be changed on Button
click, you can code it here.
Open activity_main.xml:
b)Activity_main.xml
This is preview of your application that is how your application will look when you'll launch it.
Below the preview you can see two tabs : which are "Design" and "Text".
Now we are on the design tab.
Design is basically just drag and drop.
You can drag and drop components here from the palette.
Comments
Post a Comment