Read and learn: Collection processing part1 & 4 updated Kotlin Coroutines Articles & Android…

Read and learn: Collection processing part1 & 4 updated Kotlin Coroutines Articles & Android article & Happy vacations 🏖


Read and learn: Collection processing part1 & 4 updated Kotlin Coroutines Articles & Android… was originally published in Kt. Academy on Medium, where people are continuing the conversation by highlighting and responding to this story.

Continue ReadingRead and learn: Collection processing part1 & 4 updated Kotlin Coroutines Articles & Android…

Read and learn: 2 Kotlin Coroutines Articles & Android Problems & Funny Programming & Learning…

Read and learn: 2 Kotlin Coroutines Articles & Android Problems & Funny Programming & Learning Driven & Coroutines Workshop 😎


Read and learn: 2 Kotlin Coroutines Articles & Android Problems & Funny Programming & Learning… was originally published in Kt. Academy on Medium, where people are continuing the conversation by highlighting and responding to this story.

Continue ReadingRead and learn: 2 Kotlin Coroutines Articles & Android Problems & Funny Programming & Learning…

Most Common Android Problems  — Android Pitfalls

Most Common Android Problems — Android Pitfalls 🐭 🧀

Photo by Lauren Mancke on Unsplash

What does happens when a screen is rotated? Before we think about this question let’s try to understand how does Android deal with that.

When a user rotates their phone the configuration of the Activity changes, so android OS destroys the Activity and recreates it again.

Behind the scenes; when the device orientation changes, first the Activity will disappear for a millisecond when the onPause, onStop, and onDestroy methods are called. After a few milliseconds, the activity will be restarted and the onCreate, onStart, and onResume methods are called.


Most Common Android Problems  — Android Pitfalls 🐭 🧀 was originally published in Kt. Academy on Medium, where people are continuing the conversation by highlighting and responding to this story.

Continue ReadingMost Common Android Problems  — Android Pitfalls

Say Hello to Jetpack Compose and Compare with XML

Introduction

Hi everyone 👋 I will try to explain Jetpack Compose Fundamentals and Why should I use Jetpack Compose. Jetpack Compose is important because it is a new way of building modern UI in Android. Let’s dive into the UI development in Android without XML.

In my opinion, Jetpack Compose is the future of Android UI development and we must adopt fastly.

What is Jetpack Compose?

Jetpack Compose is Android’s modern toolkit for building native UI. It simplifies and accelerates UI development on Android – Google

Jetpack Compose is a modern toolkit that allows us to build our screens in a declarative approach writing less code. Android UI Development is now more powerful and more decoupled.

Before Jetpack Compose, we were using XML layouts to build the native UI. We had a very dependent structure when we build the screens with XML. Also, fragments are very heavy components for the UI. Jetpack Compose allows us to build the same UI with a declarative UI approach and with less code.

Why should I use Jetpack Compose?

In my opinion, it’s more than easy from XML and Kotlin ❤️

If we look technically:

  • Declarative UI is cleaner, readable, and performant than Imperative UI.
  • Compose allows you to do more with less code compared to XML.
  • Compose is Intuitive. This means that you just need to tell Compose what you want to show the user.
  • Compose is compatible with all your existing code: you can call Compose code from Views and Views from Compose. Also integrated with many Jetpack Libraries.
  • Compose improves your build time and APK size.

XML Design vs Jetpack Compose

Composition — Recomposition — State Management

Each composables has a initial compositon. Initial composition runs only when we see a view at first time in screen.

Composables can hold a state and re-run on state changes. This is called Recomposition.


Say Hello 👋 to Jetpack Compose and Compare with XML was originally published in Kt. Academy on Medium, where people are continuing the conversation by highlighting and responding to this story.

Continue ReadingSay Hello to Jetpack Compose and Compare with XML

Best articles from 2021 from our blog & Happy New Year from Kt. Academy

Welcome! 🍾

How were your Christmas days? Did you rest properly? If so, we hope you are ready for the new experiences and challenges in the New Year. 💪

What about New Year’s Resolutions? Would you like to code more? ⌨

Anyway, we wish you that all your dreams come true, so
…. cheers to 2022! 🥂


Best articles from 2021 from our blog & Happy New Year from Kt. Academy 🎆 was originally published in Kt. Academy on Medium, where people are continuing the conversation by highlighting and responding to this story.

Continue ReadingBest articles from 2021 from our blog & Happy New Year from Kt. Academy

2 articles & Gift recommendation from Kt. Academy

Hello!
Kt. Academy here 👋

Today’s newsletter won’t be long because we’re focusing mainly on our Advent of Kotlin now 🔥
By the way, let us know how it’s going so far?
Do you enjoy it? Or maybe it’s too easy? 😏

The next part of Advent of Kotlin is coming soon, and now let’s move to today’s content!

👉 It has never been easier to understand how to write Unit Tests on Android — Part 1
👉 Write Mobile SDK Like a Pro

🎁 Best Xmas gift for Kotlin-lover

*️⃣ We’d love to hear your thoughts and suggestions for this newsletter. Please share them with us by replying to this email 📩

Enjoy! ⏬

In this article, Begüm Yazıcı will try to explain what are Unit tests, why should we write them, and how to write them.

It has never been easier to understand how to write Unit Tests on Android — Part 1 👇


2 articles & Gift recommendation from Kt. Academy 🔥 was originally published in Kt. Academy on Medium, where people are continuing the conversation by highlighting and responding to this story.

Continue Reading2 articles & Gift recommendation from Kt. Academy

End of content

No more pages to load