Live Templates in Android Studio – Useful tool for Android Developers
Intro Live Templates are a compose-related tool added to Android Studio that allows you to enter code snippets for fast insertion by typing an abbreviation corresponding to a template abbreviation. Live Templates can help you optimize everyday tasks and speed up your work. For example, when working with Compose, youRead More →
Parsing XML RSS Feed for Android using prof18/RSS-Parser
Parsing XML response from RSS feed in Android have always been a bit complicated. All this issues are combiend in very good library RSS-Parser. As the repo says and in this example, “RSS Parser is an Android library to parse any RSS feed. With RSS Parser, you can fetch plenty of usefulRead More →
Our new Formula E fan made app
Check out our new Formula E fan-made app. You can find news, the race calendar, teams, drivers, and more features to come. This is an unofficial Formula E app, all brand rights go to their respective owners. You can download the app on Google play – here. Read More →
Application identification utilities for Android
Here is some helper util functions to retrieve some Application identification programmatically, like name, version, play store url and other info.Read More →
How to implement long press action on RecyclerView items using interface
Intro This post is part three of our RecyclerView exercises series and in it, we will show you how to replace the on-click action with a long-press action using an onLongClickListener and an interface. You can check parts one and two. Exercise For this exercise we will use the projectRead More →
Calculate DisplayCutout Android
From API 29 or Android 10, Android introduced a feature for Display cutouts on the screen (for camera for example). These are call Insets and can be accessed via DisplayCutout object. In this example is described how to get the size of this cutouts:Read More →
How to read values from logcat in Android Studio Programmatically?
I was stuck with a log values from one library that I was using in a project. The values that the library was producing were printed in Android studio logcat and visible. Some of those log values I needed inside my app, but there was no library function/method go getRead More →
How to update an item in RecyclerView – Android
Intro In this post we will demonstrate how to update an item in your RecyclerView. Updating an item in RecyclerView is useful when you are working with a list of elements that you will sent for example as a part of an API request, but the user has an optionRead More →
How to change the background on clicked item in RecyclerView
You may come across a situation when you need to mark visually the item that the user clicked in your RecyclerView. In our user scenario we need to change the background of the item in the RecyclerView on click by the user and then when the user clicks on aRead More →
Android – Useful Utility Classes
While working on android apps we use a number of utility classes to encapsulate certain logic that we need on multiple places in the application. We use this android utility classes to display or hide UI elements, to check the network connection etc. We are using Kotlin in this example,Read More →