hey guys welcome to the android development tutorial series by geeksforgeeks.
My name is Sriram and in this tutorial series I'm gonna take you guys
from the basics to a stage where you can get a job as a junior Android developer
so before we start this series I just wanna tell you guys that you should know
Java for this. There is a Java prerequisite for this course if you guys
don't know Java I'll link to some videos in the description notes below
go learn Java you don't need to know a lot of you just need to know basic
programming like what is an int what is in float what is string what is
character okay what's an array for loops if statement
while loops functions and classes that's all you need to know okay you
don't need to know threading you don't need to know advanced concept that I'll
cover here all you need to know is the basic until like looping and functions
classes objects the object oriented programming paradigms the encapsulation
all those really need to know that so if you don't know that I highly recommend
you to go check out the links I will post a lot of links in the description
notes go learn Java for a little bit and then come back to this tutorial
series all right so if you guys know Java let's get started and here I'm not
gonna show you how to install Android Studio I'm not going to show you how
to install the JDK and JRE so I think that's because there are lots of
tutorials for those online and it's very simple you just need to
install the exe double click and then it's done so I'll link to some videos in
the description below go see how to install and once you've installed the
software development kit or the SDK you will get this screen okay where you can
see start a new Android studio project open an existing project and all so once
you come to this screen come back to this video and then we'll start you
won't don't worry if you don't see a list here this is the list of
projects that I've been doing so since you this is a fresh installation for you
guys you won't be able to see okay so once you come to the screen
click on start a new Android studio project. This is your first step for any
project you have to start a project in the Android studio ok. Android Studio is
based on IntelliJ IDE Java development environment cleared by IntelliJ this is
modified by Google for us to develop Android projects easily ok so click on start a
new and a studio project it looked pretty much the same way there if you're
in Linux or Windows or Mac doesn't matter this screen would look pretty
much the same all right so every screen for that matter every screen in Andriod
Studio will look pretty much the same alright so click start a new Android
studio project ok in this screen let's look at the screen
so we have the application name the application name is going to be the name
of your application suppose we were creating WhatsApp so WhatsApp will be
the application name or Facebook is the application name so whatever name you
see in the Google Play Store when you install it right so that is your
application name so I will keep my application name as my first app so just
keep it simple one thing you should remember is this first character should
always be caps alright if you try to put it in small you know Android will give you a
warning the application name for most apps begins with an uppercase letter alright
so sorry have a capital m company domain you might be asking why should I give a
domain you know what it is the website you have that you own you know what be
asking why do I need to give a company domain the thing is see I can develop an
app called WhatsApp you can develop an app called WhatsApp the billion people
online can available app call what self how will go goodbye differentiate
from your app in my app alright suppose I I'm creating an app called my first
app you're also creating an app called my first app how will Google Play
differentiate so every app has a unique package name as you can see down
here every app has a unique package name alright so that package name is
created with the company domain name your application name. 99.9% we have
our company domain name as unique right so suppose if I own google.com no one
else can own google.com that is mine mine forever
all right so if I own a sriram.com that's mine. Don't try to go in here there's
nothing here if you don't have a company domain let's have like yourname.com
like that make sure it's not there make sure there is no domain in that name
online and then use it okay so project location this is a location where the
project files will be there okay so for now leave it at default it's going to be
for windows it's going to be in My Documents and then a folder for in in my
Mac I've configured for the special directory okay include C++ and Kotlin
support. We can develop Android apps with C++ and Kotlin. Kotlin is a
language which came about recently and I'll have a tutorial for that later on
so first let's concentrate on Java then I will tell you how C++ and Kotlin will
be used in development okay so once you fill all these details click
on next alright click on next okay this screen
is to choose what kind of development are you doing see you can either develop
for phone and tablets for Android where there is the Android watches the Android
TV Android auto is the software that runs on cars it's not there India yet
like I don't I don't think there are any cars in India running on Android but
there are some cars which have you know Android installed in their GPS system
and also like you know you can ask well GPS and all those things. Android
things are those IOT devices alright so in this tutorial series we're gonna
stick with phone and tablets but I might add you know development for wear things later on
so right now we will concentrate on phones and tablets because that's the
most common thing you know how many phones of Android there are in the
market right so we'll start with phones and tablets in this drop down menu you
have to select minimum SDK version. SDK is
software development kit the minimum SDK version suppose you choose android 4.4
kitkat right so any phone from KitKat and above will only be able to install
your app from the Play Store any phone below 4.4, like 4.0 Gingerbread all
those they won't be able to see this app or they won't be able to install this
app okay so you may ask me why develop for Kit Kat why not develop for Nougat or
Oreo, the latest versions. The thing is Oreo released a couple of months ago and
If you click on Oreo you'll see by targeting API 26 and later your App will run on
less than one percent of the devices so there are very few devices there
only the Nexus devices and the Oneplus 5t has got Oreo until now so if
you target for oreo only those devices will be able to you know install that's
not what we need so usually for now people choose KitKat or lollipop.
I usually choose KitKat because approximately 90% of the devices will
run you - so suppose if you go lower lot of one gets usupport right so why not
just start with Android one or two the thing is Android pushed some features
incrementally okay so in order to use the latest features you need to have a
pretty decent version so and right now Android 4.4 KitKat is that sweet spot
where all the good features are supported right suppose you go to 2.2
you can have fragments you know something I'll teach you later
on and you have all those stuff so the sweet spot for now is Android 4.4 KitKat
and you can also see that approximately 90% devices so if all the 90% devices
installed you will have billions of downloads all right don't worry
here you see include android instant app support
we're not going to do instant app support right now. Instant app support is something
that was brought in Oreo you so basically if you're having an app like
Quora or Facebook and you don't have the app on Android but you were going
through Google Chrome in your phone and it's all linked so when you open the
link you be having a pretty decent version of the
app which will run directly without installing them just for that moment so
that is the instant app support we're not gonna go through that now we'll do that
later okay so choose phone and tablet choose
Android 4.4 KitKat and then click on next
so here right now click on empty right now click on empty activity and choose
don't worry about all this okay you don't have no activity have an empty
activity I'll tell you what an activity is and then I'll explain to you what all
these are so for now choose empty activity click Next alright so the
activity we created has the name as main activity don't change anything in
this for now don't worry if you don't understand anything here I will explain
to you in the in the next video ok so right now just keep the activity name as
main activity the layout as such alright and then click on finish so once you
click on finish then you'll see something as a Gradle build alright
don't worry about that I'll teach you this episode is about just setting up
your Android and then making sure it works ok so let the Gradle build run
okay it might since you are starting your andriod
studio for the first time it may take a little while to learn it may take 5
minutes may take 10 minutes depending on your laptop speed don't worry just let
it run see if you see here you can see Gradle build running alright so just let
it run and you will know it it is completed once there is no loading bar
in the bottom part okay so once this loading bar is stopped you will know
that everything is done and you see so here you know here there is no loading
bar anymore so now you know that everything is done you can start the
development alright so I will come back like this so this is the development
this is the area where we go to develop our apps okay this is the area where
we're going to write our code okay this whole area this whole area alright and
this is a area where we can navigate through different files, different Java
classes You know Java
so basically you know what packages are right so this is the package.
As we go we we'll have a lot of packages we'll have a lot of
files okay so this this is where all the files are and suppose we want to open
this layout file we'll double click here and this will open all right so thank
you guys this is all for the video in the next video we'll install the
emulator and make a basic app run alright so thank you and stay to tuned
for the next video
Không có nhận xét nào:
Đăng nhận xét