Know Your Meme π€£β
Welcome & Hello! π«β
When the cat is away, the mice will play. Similarly, when the sun is out, the developers will shine as we near the end of the year. You would think that we were slowing down but you would probably be forgiven as we are switching gears (Tech Bros, please relax). We know that you are curious to know what has been happening this month and that is where we come in as Problem-Solvng is our middle name. This is Episode #22 of The Kotlin Kenya Newsletter:
Overcoming The MockK Struggle π§ͺβ
The first session vibrantly kicked off with Rachel Murabula using the analogy of car parts to introduce MockK as a Testing Library. She took the audience through the steps needed to write tests using MockK by use of a whiteboard in a way that would make you think that it was a classic DSA Session...
Principles for Effective Session Delivery π£β
Without wasting any time, Mambo Bryan engaged the audience and rightfully so because he educated the members on how to deliver world-class sessions. Using the example of everybody's favourite topic (Kotlin Coroutines), he gave a step-by-step demonstration of how to conduct sessions like an expert (If you know you know). In addition, a lengthy discussion was made and the following were the key takeaways that we hope you will go and research on:
- Kotlin Flows and Suspending Functions (Find out how their implementations in Room were changed in Room 3.x)...
- Concurrency and Parallelism...
DroidCon Kenya 2024 ποΈβ
Have you still not bought your tickets to the most exciting annual event in the history of Android in Kenya? π€¦ββοΈ If we said that we had more goodies (and that is a big "If") for the first few buyers then would that motivate you to head over to droidcon.co.ke and get your tickets? There you go then, you sneaky developers. π Head over to droidcon.co.ke and grab your tickets as you never know what awaits you from the 6th to the 8th of November this year... π
Feature of The Month πβ
Many developers know how to survive screen rotations using ViewModel or rememberSaveable, but the bigger questions remain: Why does state get lost in the first place? Why is ViewModel often the go-to solution, and is it the only one? What about other scenarios, like process death or user-initiated closures?
Unlike desktop or web environments, Android apps run on a wide range of devices with different hardware capabilities, varying screen sizes, and limited resources like memory and battery. Moreover, the Android operating system is designed to be highly dynamic, frequently creating and destroying activities and fragments to optimize resource usage and preserve battery life. This means that your app's state can be lost or reset at almost any time if not managed properly.
In this first release of Android Hot and Ready, Preserving Your Android App State, we share insights and practical strategies for managing state in your Android apps. From handling configuration changes to preparing for process death, we've covered a range of solutions to keep your appβs state alive and ensure a great user experience.
Before You Go... πββοΈβ
Do you want to have your product (app, article, video, etc) featured in the next episode? Worry not for all you need to do is reach out to us at either Android254 or Kotlin Kenya and include the details of your product. What are you waiting for? Let us get to work, shall we?
Until October π«β
It is at this point that we acknowledge our new beginnings and pledge π€ to have a transformative 2024. We have journeyed, are journeying, and will still journey with you. Gears are about to be shifted (Tech Bros please calm down) in your favour. If you would like to level up your career in Android, then attending the monthly meetups, building cool stuff in public, and interacting with community members should be a part of your routine. We cannot wait to hear and share your stories. See you in October! π