Getting Started With CameraX in building Camera Apps on Android
Building an app that uses Camera features like Instagram or Snapchat on Android has been a hassle for Android devs partly due to the many…
Building an app that uses Camera features like Instagram or Snapchat on Android has been a hassle for Android devs partly due to the many…
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.
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.
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.
In my opinion, it’s more than easy from XML and Kotlin ❤️
If we look technically:
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.
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! 🥂
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 👇