Kotlin Singleton in Kotlin In the Kotlin programming language, a singleton is a design pattern that allows you to create only one instance of a class. This is useful when you want to make Needone 11 Mar 2023 · 1 min read
Kotlin Use keystore to store your sensitive in Kotlin The keystore is a secure storage location in Android that is used to store encryption keys, digital certificates, and other sensitive information. The keystore is encrypted with a hardware-based key, Needone 9 Mar 2023 · 1 min read
Kotlin Certificate pinning and Public key pinning in Kotlin With the last article (Certificate pinning and Public key pinning), we know the concept of Certificate pinning and Public key pinning, and how to implement them in iOS. This article Needone 25 Feb 2023 · 1 min read
Android Download image from URL in Kotlin In Android, we can get the image from synchronously and asynchronously, but it is more common to see in the later. Download image synchronously To download an image from a Needone 21 Feb 2023 · 2 min read
Android Lazy in Kotlin In the Kotlin programming language, the term "lazy" typically refers to a type of property or variable that is only initialized when it is first accessed, rather than when the Needone 11 Feb 2023 · 3 min read
Android Encode URL in Kotlin In Kotlin, you can use the URLEncoder class to encode a URL string so that it can be safely transmitted over the internet. The URLEncoder class is part of the Needone 2 Feb 2023 · 1 min read
Android Difference between activity and requireActivity() in Kotlin activity property In the Android framework, the Activity class represents an app's UI and provides an interface for the app to interact with the system. The activity property in a Needone 24 Jan 2023 · 2 min read
Android Start and Suspend a Coroutine in Kotlin Kotlin Coroutines Table Content 1, Introduction to Coroutine in Kotlin 2, Non-blocking in Kotlin Coroutines 3, Start and Suspend a Coroutine in Kotlin (This article) With the previous articles (Introduction Needone 21 Jan 2023 · 2 min read
Android Non-blocking in Kotlin Coroutines Kotlin Coroutines Table Content 1, Introduction to Coroutine in Kotlin 2, Non-blocking in Kotlin Coroutines (This article) 3, Start and Suspend a Coroutine in Kotlin (incoming this week) From the Needone 19 Jan 2023 · 2 min read
Kotlin Introduction to Coroutine in Kotlin A Coroutine is a lightweight thread of execution that can be suspended and resumed later. There are already many articles or topics covering this but this post is different, it Needone 17 Jan 2023 · 3 min read
Kotlin How to make a custom view in Kotlin To create a custom view in Kotlin, you can create a new subclass of View and override the onDraw method to draw the view's content. Then, you can add any Needone 12 Jan 2023 · 1 min read
Android Bottom Sheet Dialog implementation in kotlin To create a bottom sheet dialog in Kotlin, you can use the BottomSheetDialog class from the Android Support Library, which is a built-in package. Here's an example of how you Needone 18 Dec 2022 · 1 min read
Kotlin Type safe in programming language Introduction Type safety in programming languages refers to the concept that variables and data structures are strongly typed and cannot be assigned values of different types. This means that the Needone 9 Dec 2022 · 2 min read
Android Companion Object in Kotlin Kotlin provides a brand new keyword companion which not exists in other programming languages. But don't be panic, it is not something new when you have one step closer. A Needone 7 Dec 2022 · 1 min read
Android An easy example on how to use Jetpack ViewModel and LiveData Jetpack broken up into four main areas: Architecture, Foundation, Behavior and UI. ViewModel ViewModel helped to achieve two things: * help the project to adopt MVVM architecture * hold the data in Needone 22 Jul 2020 · 4 min read
Android Android: Are you familiar with onCreate(), onStart() onResume() and ... running order of onCreate, onStart, onResume and onDestory .... in Android using Kotlin Needone 6 Jul 2020 · 3 min read