In this tutorial we will learn android development from basic to advace.
Let's start learning android development
Android is one of the most popular operating systems with over 88% of phones running android.
An XML file is used to build layout in Android. Layout are static pages (Screen) which can be manipulated using Java code (programmatically).
Android studio is an IDE that makes it easy for us to write & build UI layouts using drag and drop features.
You can go to https://developer.android.com/studio to download android studio.
In Android Studio we can quickly build layout by dragging UI element using layout editor and in this also we write XML by hand very easily.
Using layout editor we can setup different attributes easily using the design mode in android studio.
Chapter 1
In this chapter we will create our first android app.I don't expect from you to know anything but will walk you through the steps to build your first Android App!
An APK is a collection of different files (like code, audio, video, etc) compiled and bundles into a single file.
AVD stands for Android Virtual Device.
Android virtual device (AVD ) is an emulator configuration which simulates a physical Android Device in android studio.
View are the base class for widgets (Like butons, text fields etc.)
( Here View is a Basic building block)
View Group hold view and view Group
(Here View Group is a box (container) which can hold objects and more boxes)
XML is the skeleton code which describe the UI layout and Java drives this XML
When submit is clicked { Change the screen + store the data} using Java.
Creating our Unit Converter App
Step 1 - Click on New Project
Step 2 - Click on Empty Activity
Step 3 - Click Next
Step 4 - Type the name of your App and click finish
Step 5 - Wait for the gradle build finish
Android R.java file contails resource IDs for all the resource. We can use it to access views from our java file.
Button = find view by Id (R.id.mybotton);
Here find view is a function to access view and mybutton is a id of button in XML.
We can add on click listeners by using set on click listener method as follows.
button.SetonClickListener(new view.OnClickListener())
@ override
public void on click (view v) {
// Write action here,what you want
}
});
In button XML layout element, the onClick attribute can be set.
In XML
android : onClick = "SendMyMessage"
In Java
public void SendMyMessage(view view){
// Code here
}
Chapter 2
Java is an amaging object oriented programming language. We will use java to create android apps.
The java program starts executing from here
public static void main (string [ ] args) {
//code
}
The following code prints "Hello World" to the console :
Variables are buckets in memory
String actionNow; - String is used to store seq of characters
int marks; - int is used to store numbers
int value = 7;
// Comments are used to write text which doesn't executes
// This is a comment
/* This is a multiline comment */
String = Sequence of charecter
String name = "Harry" (Strings are immutable and not changable)
We can concatenate string like this:
String name = "Harry"
name.length()
name.toLowerCase
name.trim()
We can store numbers using
byte : -128 to 127
short : -(216 / 2) to (216 / 2 -1)
int : -(232 / 2) to (232 / 2 -1)
float : Used to store decimal values (4 bytes) [ ex. 10.if ]
long : -(264 / 2) to (264 / 2 -1)
double : Decimal values of 8 bytes [ex 7.88d]
Coursera, Codeacademy, Udacity, W3Schools, Udemy, Alison, TheNewBoston, edX, P.S.Codewars,Freecodecamp, Managing technical debt blog, Scrimba, Codepen, Codepen/challenges, The Odin Project, htmlreference.io, cssreference.io, Frontend Mentor, Dev Challenges, MDN, Code Mentor, Coding Dojo, CSS Battle, Codier, Ace Frontend, Can I Use, CSS Tricks, 30 Seconds of Code,tutorialspoint, Neumorphism, Shaddows Brumm, Fancy Border Radius, Glow Generator, Clothoid Corners, Glassmorphism, Clipy, CSS Filters, Base64 Image, Quantity Queries, Animations, Cubic-Bezier, Keyframes, Wait Animate, Transition.Style, graphic design, web design, website design, website builder, web developer, web designer, webdesign, ecommerce website, web design company, website creator, website designer, responsive web design, web development company, best website design, web design software, web page design, build a website, web developer salary, design website, web design courses, how to design a website, web design inspiration, website layout, web designer salary, web application development, ecommerce website design, web agency, software development company, web design tutorial, web programming, design company, website design templates, what is web designing, web developer jobs, website developer, web design agency, freelance web developer, web design services, freelance web designer, graphic design websites, web solutions, ecommerce website development, free website design, web development courses, webdev, web developers, web development tools, website design services, developpeur web, web design london, website design ideas, web designing and programming, design a website, web design and development, web dev, web development services, homepage design, best designed websites, cheap website design, learn web design, web design templates, web design tools, web design jobs, website design inspiration, web design india, flash website, website developers, designer websites, website services, website design cost, good website design, site design, simple website design, cool website designs, modern website design, graphic designer websites, webcode, best web design software, website making, free web design software, mobile website design, learn web development, front end web developer, how to become a web developer, web developer portfolio, web development company in india, python web development, web development tutorial, website company, website design and development, web company, webdesigning, professional website design, affordable web design, best web design company, creative web design, top website designs, website design pricing, web developer tools, how to develop a website