How to start first project in android studio - Andropro

Andropro

androidtutorialro

Breaking

Home Top Ad

Responsive Ads Here

Post Top Ad

Responsive Ads Here

Sunday, June 17, 2018

How to start first project in android studio

CREATE AN FIRST ANDROID STUDIO PROJECT:

This chapter will show how to start first project in android studio and describes the important events on the project.

1.first be sure you installed the latest android studio version or download here android studio latest version

2.In the WELCOME TO ANDROID STUDIO dialog box,click START A NEW PROJECT



CREATE NEW PROJECT window will appear in that window enter your project name and your company domain like astin.salvi.com


In next window select on which factors on your app should run on


in phone and tablet session choose minimum sdk  API 22 which will support upto 78% android devices and then click NEXT


ADD AN ACTIVITY :
choose the activity that you need to show on your app you can add more that one activity after setup
i chosen EMPTY ACTIVITY then click NEXT


CUSTOMIZING THE ACTIVITY:

give the activty name and layout name by default it will be MainActivity.java and activity_main.xml then click  FINISH to start your project


after that you will enter into the project with activity_main.xml and MainActivity.java tabs openned



 FOLLOW THESE GENERAL INSTRUCTIONS THIS WILL BE USEFUL FOR ALL THE ROJECTS:

ANDROIDMANIFEST.XML:

every project must have android manifest.xml file which is the structure of your android application it combines all the activities and layouts to form an android application

In left side project panel you will see project ANDROID->APP->androidmanifest.xml
 just double click to open it




MainActivity.java:

 it includes all the activities to be carried out on your app when it is launched
it contains java code in which the activity is carried out,you may given diffrent name on creating new project

To open MainActivity.java
in project tab on leftside APP ->JAVA folder -> MainActivity.java


activity_main.xml:

layout file gives the user interface which the user can see or use when your app is launched it plays an major role in devloping the apps

To open  APP -> RES ->LAYOUTS-> activity_main.xml



these are the three sections which plays an major role in developing your android application 






Post Bottom Ad

Responsive Ads Here

Pages