1. Android With Kotlin course
Mohyddine Al-lahham
Application Developer |
Ex- Software Engineer at
CME Lebanon.
Tiktok and Youtube
@lebanese Developer
Introduction | 9:00 pm Beirut time
Eslam Medhat
Application Developer
| Trainer
@BambooGeeks
@madahetooo
2. The reason Android rules the app market is its ability to
run on more devices than its competitors. Manufacturers
that make devices supporting Android apps outnumber
those developing to suit iOS specific apps. The simple
reason being that an Android device will be used by more
number of people, owing to the ‘affordability’ part. Thus,
Android application development proved to be the wiser
and a more profitable option.
Why Android Development?
3. Why is Android development Kotlin-first?
● Expressive and concise: You can do more with less. Express your ideas and reduce
the amount of boilerplate code. 67% of professional developers who use Kotlin say
Kotlin has increased their productivity.
● Safer code: Kotlin has many language features to help you avoid common
programming mistakes such as null pointer exceptions. Android apps that contain
Kotlin code are 20% less likely to crash.
● Interoperable: Call Java-based code from Kotlin, or call Kotlin from Java-based
code. Kotlin is 100% interoperable with the Java programming language, so you
can have as little or as much of Kotlin in your project as you want.
● Structured Concurrency: Kotlin coroutines make asynchronous code as easy to
work with as blocking code. Coroutines dramatically simplify background task
management for everything from network calls to accessing local data.
4. From Android Website: What does Kotlin-first mean?
When building new Android
development tools and content,
such as Jetpack libraries,
samples, documentation, and
training content, we will design
them with Kotlin users in mind
while continuing to provide
support for using our APIs from
the Java programming
language.
5. 1. Introduction to Kotlin programming language.
2. Object oriented programming with kotlin.
Our Learning Plan For Sep-Oct 2021
6.
7. - Kotlin is a general-purpose, statically typed, and open-source
programming language.
- It runs on JVM and can be used anywhere Java is used today. It
can be used to develop Android apps, server-side apps and much
more...
- Similar to Java, but free of its legacy problems and limitations.
- Can be freely mixed with Java (6+), existing codebase, ecosystem
(Maven, Gradle), libraries etc.
- Easy learning curve (similar to Java/C#/JS), modern & fun!
8. Kotlin History
- In July 2011 JetBrains unveiled Project Kotlin, a new language for
the JVM, which had been under development for a year.
- Kotlin v1.0 was released on February 15, 2016.
- This is considered to be the first officially stable release and
JetBrains has committed to long-term backward compatibility
starting with this version.
- At Google I/O 2017, Google announced first-class support for
Kotlin on Android.
10. Reasons to love Kotlin
1. Concise
2. Null safety
3. Interoperable
4. Smart Cast
5. Compilation Time
6. Tool-friendly
7. Extension Function
8. Multiple Items in File
9. Open Source
11. Concise
Kotlin reduces the amount of boilerplate code
that you have been
writing all the time in other OOP languages
like Java.
• For example, You can create a POJO class
with getters,
setters, equals() and toString() methods in a
single line.
12.
13.
14. Kotlin Basic Syntax
1. Variables
2. Data Types
3. Conditions (If, Else – When)
4. Loops (For – While – Do While)
5. Functions
6. Classes
7. Properties
15. val
- Read-only local variables are defined using the keyword val. They
can be assigned a value only once.
- Variables that can be assigned using the var keyword.
27. Null Safety
Kotlin is null safety language. Kotlin aimed to eliminate the
NullPointerException (null reference) from the code.Interoperable.
28. Smart Cast
- It explicitly typecasts the immutable values and inserts the value in
It's safe to cast automatically.
- Being explicit means being specific about your design choices and not hiding anything from the readers
or consumers of your code.