0% found this document useful (0 votes)
12 views

Android 1 5 Tutorial

Android material

Uploaded by

Abhishek Akabari
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Android 1 5 Tutorial

Android material

Uploaded by

Abhishek Akabari
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

Android from Zero to Hero

Theory + Practical
FAHAD HUSSAIN
MCS, MSCS, DAE(CIT)
Computer Science Instructor of well known international Center
Also, Machine Learning and Deep learning Practitioner

For further assistance, code and slide https://fahadhussaincs.blogspot.com/


YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Prerequisites for android app
development

• Java Programming language or any Object Oriented


Language background (in Eclipse OR Netbeans, IDE)

• And Your Interest in developing mobile app.

For further assistance, code and slide https://fahadhussaincs.blogspot.com/


YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Reason to Learn Android

• Reason 1 – It's Open Source


• Reason 2 – It's Fastest Growing Technology
• Reason 3 – Google Play Store is the Largest App Market
• Reason 4 – Huge Demand in Job Markets
• Reason 5 – Handsome Salaries

Android vs. iOS: Which smartphone platform is the best?


For further assistance, code and slide https://fahadhussaincs.blogspot.com/
YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Android Basic

For further assistance, code and slide https://fahadhussaincs.blogspot.com/


YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Android Versions

For further assistance, code and slide https://fahadhussaincs.blogspot.com/


YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Android

For further assistance, code and slide https://fahadhussaincs.blogspot.com/


YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Android

For further assistance, code and slide https://fahadhussaincs.blogspot.com/


YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Android In computer storage, fragmentation is
a phenomenon in which storage space
is used inefficiently, reducing capacity
or performance and often both. ... In
many cases, fragmentation leads to
storage space being "wasted", and in
that case the term also refers to the
wasted space itself.

For further assistance, code and slide https://fahadhussaincs.blogspot.com/


YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Android Architecture

For further assistance, code and slide https://fahadhussaincs.blogspot.com/


YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Emulators vs Simulators

For further assistance, code and slide https://fahadhussaincs.blogspot.com/


YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Thanks
Do Subscribe the Channel

For further assistance, code and slide https://fahadhussaincs.blogspot.com/


YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Android Activity life Cycle, So what is Activity?
An Android activity is one screen of the Android app's user interface. In that way
an Android activity is very similar to windows in a desktop application.
An Android app may contain one or more activities, meaning one or more screens

For further assistance, code and slide https://fahadhussaincs.blogspot.com/


YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Android Activity life Cycle
For further assistance, code and slide https://fahadhussaincs.blogspot.com/
YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Thanks
Do Subscribe the Channel

For further assistance, code and slide https://fahadhussaincs.blogspot.com/


YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Android Core Building Blocks
• An activity is a class that represents a single screen. It is like a Frame in AWT.

• A view is the UI element such as button, label, text field etc. Anything that you see is a view.

• Intent is used to invoke components. It is mainly used to:


• Start the service
• Launch an activity
• Display a web page

• Service is a background process that can run for a long time.

• There are two types of services local and remote. Local service is accessed from within the application whereas remote
service is accessed remotely from other applications running on the same device.

• Content Providers are used to share data between the applications.

• Fragments are like parts of activity. An activity can display one or more fragments on the screen at the same time.

• AndroidManifest.xml: It contains information's about activities, content providers, permissions etc. It is like the web.xml
file in Java EE.
• Android Virtual Device (AVD): It is used to test the android application without the need for mobile or tablet etc. It can be
created in different configurations to emulate different types of real devices.
Thanks
Do Subscribe the Channel

For further assistance, code and slide https://fahadhussaincs.blogspot.com/


YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Dalvik Virtual Machine | DVM
As we know the modern JVM is high performance and provides excellent memory management. But it needs to
be optimized for low-powered handheld devices as well.

The Dalvik Virtual Machine (DVM) is an android virtual machine optimized for mobile devices. It optimizes the
virtual machine for memory, battery life and performance.

Dalvik is a name of a town in Iceland. The Dalvik VM was written by Dan Bornstein.
The javac tool compiles the java source file into the class
file.

The dx tool takes all the class files of your application and
generates a single .dex file. It is a platform-specific tool.

The Android Assets Packaging Tool (aapt) handles the


packaging process.

For further assistance, code and slide https://fahadhussaincs.blogspot.com/


YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Android Installation process

• Best System Configuration (more Than 4GB RAM)


• Install latest JDK
• then, install Android Studio

https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

https://developer.android.com/studio

For further assistance, code and slide https://fahadhussaincs.blogspot.com/


YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Thanks
Do Subscribe the Channel

For further assistance, code and slide https://fahadhussaincs.blogspot.com/


YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Android R.java file
Android R.java is an auto-generated file by aapt (Android Asset Packaging Tool) that
contains resource IDs for all the resources of res/ directory.

If you create any component in the activity_main.xml file, id for the corresponding
component is automatically created in this file. This id can be used in the activity source
file to perform any action on the component.

Note: If you delete R.jar file, android creates it automatically.

R. java is the generated file by ADT or Android studio. It will be located


under app\build\generated\source\r directory

For further assistance, code and slide https://fahadhussaincs.blogspot.com/


YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Lets’ understand Android and its
hierarchy Practically with
Hello World Example

in Android Studio
For further assistance, code and slide https://fahadhussaincs.blogspot.com/
YouTube Channel : https://www.youtube.com/fahadhussaintutorial
Thanks
Do Subscribe the Channel

For further assistance, code and slide https://fahadhussaincs.blogspot.com/


YouTube Channel : https://www.youtube.com/fahadhussaintutorial

You might also like