You are on page 1of 14

What is Android

 Android is an operating system that is most popular


among smartphones.

 Now a days even auto cars,tv,watches etc., uses android


OS.
 Google owned android OS in 2005.

 Google play store has more than 3.5 million applications.

 The android applications are developed using Android


Studio.
Programming languages used

 Java or C++ and XML.

 Now a days they use KOTLIN.

 XML is mostly used for design, layouts, blueprints


etc., as front end.

 Java and KOTLIN deals with working of buttons,


storing variables, etc., as back end.
Download and installing android studio

• Download android studio from developers.android.com official website.

• Install it. It will automatically download and installs the required SDK
components.
Creating first app

• Select >Start a new android project.


Creating first app

• Name your application in “Application name text box”.


• Click on next by leaving the other to their default values.
Creating first app

• Select the minimum SDK to select OS.


• Here Jelly Bean is minimum SDK that works on low end devices
too.
Creating first app

• For Beginner's select empty activity.


• Click Next.
Creating first app

• Then fill activity name. By default it will be ‘MainActivity’.


• An xml file is created with the first word in the activity name.

• Eg. Here the activity name is mainactivity. So the layout name


that is xml file name will be the first word activity_main.
Creating first app

Then, a default app is created with all default files. And you can now
start writing the application code.
Running first application

• Default files are created with default codes in them.


• The left side panel has all files that app includes.
•  Under the java folder, observe the first folder containing the java file of your project.
• For every activity, a “.java” file and a “.xml” file is created. In this case for MainActivity,
“MainActivity.java” and “activity_main.xml” are created.
• The “res” folder contains “layout” subfolder, which includes the xml files of the projects.
Running first application

XML file:
• Here they use default layout i.e., relative layout.
• Text view tag is used to display text in the application.
• Now click on ‘run’ option on the toolbar at the top.

• We can also use shift+F10 to run.


You can either choose the emulator or you can connect your phone and find
them listed under Connected Devices but for this you must enable the
developer options in your phone and set the USB debugging mode on.
•  The working of the first app, My Application.
• You can find all the basic functionalities that your phone has, on the emulator,
like Home button, back button, power, etc.

You might also like