Android
(16 posts)Practical Android guides — from UI components to data storage. Built from real app development experience, with complete Kotlin examples you can use right away.
All Posts
Automating Android Repo Maintenance with Reusable GitHub Actions
How I modernized 8 Android repos in one session — reusable CI workflows, batch build system updates, and a pattern for maintaining multiple projects at scale.
SharedPreferences in Android — The Complete Guide
Everything you need to know about SharedPreferences in Android — when to use it, how to save, read, remove, and list all stored values. All examples in Kotlin.
AlertDialog in Android — The Complete Guide
Everything you need to know about AlertDialog in Android — basic usage, selection dialogs, custom layouts, and button customization. All in Kotlin.
CI/CD for Android with GitHub Actions
Set up automated builds, tests, signing, and Play Store deployment for your Android project using GitHub Actions.
Display Item Selected from AutoCompleteTextView in Chip
In this blog we are going to display a list of planets in an AutoCompleteTextView. The list of planets will...
Add Border to Just One Side of View
At some point there is a need to display a layout with border(s). And sometimes the border is required in...
BottomSheetDialogFragment — Disable Cancel on Touch Outside and Drag
Disable Cancel on Touch Outside & on Back press In order to create a BottomSheetDialogFragment which should not dismiss on...
Add Badge Count to Navigation Drawer Hamburger Icon
NavigationDrawer provides easy access to menu functions. Sometimes the menu items have some actionable content available. To notify user that...
Migrate to Android Room with Date Column
Migrating our apps to Android Room from conventional SQLite Database was flawless except when we encountered issue with Date column...
Generate App Name with Version Code and Flavour Name
After a build is shared to a team or group of people, sometimes a question arises that what was the...
Product Flavors in Android
Environment plays a vital role in the application development. As per the requirements, we have to create few environments, viz....
Set Margins in DP Programmatically
Sometimes at runtime, it is required to set margin to a view. But, the problem is getting different size for...
EditText with Single Line, Line Wrapping and Done Action in Android
Regular formula for making an EditText- Single Line : no new line <Enter> allowed,- Line Wrapping : Single line wrapped...
Copy to Clipboard Programmatically
Copy text to clipboard and paste from clipboard programmatically in Android using ClipboardManager and ClipData.
Create List Using ListView
Update: Instead of using ListView now you should start using RecyclerView. If you are unfamiliar with RecyclerView then you can...
Add EditText Programmatically
Sometimes it is the requirement of the program to add EditText programmatically. The following code can be used to add...