2. WHAT WE WILL LEARN TODAY
What is Android
Android platform overview
Android app fundamentals
What is Android studio
Design using android studio
What we will learn today
What is android
Android platform overview
Android application
Android app overview
Android app fundamentals
App design
Android studio
3. What is Android
Android is the world’s most popular and domi nant mobile operating system. It is based on
Linux kernel 3.4/3.10 ( depending on device) and is open-source (with proprietary bits).
It runs on a wide variety of hardware, including smartphones, smart watches, cars,
televisions, digital cameras, game consoles and more. It was founded by Andy Rubin and
three others in October 2003 and got acquired by Google in August 2005.
4. ANDROID STUDIO
After many releases of ADT plugin for Eclipse, Google decided to build its own IDE for
Android Application Development. In December, 2014 Google released its first stable
build of Android Studio v1.0
From the date of its stable release, Android Studio
has been the official development tool that
supports all Android SDKs for android application
development.
5. FEATURES OF ANDROID STUDIO
GRADLE
Gradle is a build system, which is responsible for
code compilation, testing, deployment and
conversion of the code into .dex files and hence
running the app on the device.
As Android Studio comes with Gradle system pre-
installed, there is no need to install additional
runtime softwares to build our project. Whenever
you click on Run button in android studio, a gradle
task automatically triggers and starts building the
project and after gradle completes its task, app
starts running in AVD or in the connected device.
6. API Integration
In Android Studio, various APIs are already configured that can be directly used in
application development. Additional APIs can also be integrated in the Android Studio (see
image below). To add or remove one/more libraries you can click on the Green + and
Red – button on right side of it.
7. Dynamic Layout View
Layout editor allows drag and drop functionality to build user interface same as Eclipse.
Additionally it also provides with a preview of the UI while you edit the XML.
8. Build in Samples
Developers get readymade code samples available which can be used directly
for practicing and app development.
9. Version Control
Android Studio has Github and Bitbucket already integrated in it. So your code can
directly be pushed to online repositories like Github or BitBucket through Android Studio.
Cloud Integration and Firebase
With the Google App Engine you can connect to the different Google Cloud services
with minimum effort straight from the Android Studio. And by using the Firebase
Assistant you can easily connect to Firebase to use its quick Authentication,
Notification and other features.
Documentation View
For every suggested class, interface or code, you can refer its documentation to
get more help in a separate popup window in the code editor itself.
10. Views
View is the basic building block of UI(User Interface) in android. View refers to the
android.view.View class, which is the super class for all the GUI components like
TextView, ImageView, Button etc.
Commonly used android views
1. TextView
2. EditText
3. Button
4. ImageView
5. ImageButton
6. CheckBox
7. RadioButton
8. ListView
9. GridView
10.Toast
11.
12. Layouts
Android Layouts are used to arrange the views on the device's screen.
ViewGroup is the base class for all the layouts and view containers.
The ViewGroup is the base class for Layouts in android, like LinearLayout, RelativeLayout,
FrameLayout etc.
Commonly used layouts
1. LineraLayout
2. RelativeLayout
3. Web View
4. TabularLayout
5. ListView
6. GridView
13. Activity
Activity is nothing but a java class in Android which has some pre-defined functions which
are triggered at different App states, which we can override to perform anything we want.
Activity class provides us with empty functions allowing us to be the controller of everything.
There can be multiple Activities in Android, but there can be only one Main Activity. For
example, In Java programming (or programming languages like C or C++), the execution of
the program always begin with main() method. Similarly, when the user presses the App
icon, the Main Activity is called and the execution starts from the onCreate() method of the
Activity class.
14.
15. Intents
An Intent is a messaging object that you can use to request an action from an app
component. An Intent is basically an intention to do an action. It's a way to communicate
between Android components to request an action from a component, by different
components.
It's like a message that Android listens for and then react accordingly by identifying and
invoking the app's appropriate component (like an Activity, Service, Content Provider, etc.).
It can be within that same app or some other app as well.
16.
17. ADVANTAGES
Faster deployment of fresh builds
More accurate programming
Faster programming and Testing
Inclusive app development
Better app indexing
18. Disadvantages
Gradle building is slow
Parsing is slow
It causes sync error
It wasn’t built from scratch
Gradle sync failed : broken pipe