Open in app

Sign In

Write

Sign In

Manuchekhr Tursunov
Manuchekhr Tursunov

250 Followers

Home

About

May 25

Android Birthday Setup Dialog

First, create a function to show the birthday setup dialog: private fun showBirthdayDialog() { val calendar = Calendar.getInstance() val year = calendar.get(Calendar.YEAR) val month = calendar.get(Calendar.MONTH) val day = calendar.get(Calendar.DAY_OF_MONTH) val datePickerDialog = DatePickerDialog(requireContext(), {…

Birthday

1 min read

Birthday

1 min read


May 25

Access token expiration. Refresh Token. Retrofit Interceptor, Coroutines

I will bring an example of implementation in Kotlin for handling token expiration and refreshing the access token using Retrofit and Coroutines: First, create an API interface for the token refresh request: interface ApiService { @POST("/api/v1/users/refresh-token/") suspend fun refreshAccessToken(): TokenResponse } Create a TokenResponse data class to represent the response…

Refresh Token

3 min read

Refresh Token

3 min read


May 16

Tips for Room DB

Room is an Android library that provides an abstraction layer over SQLite database. It offers an easy-to-use, compile-time-safe, and efficient way to work with databases in Android applications. Room simplifies database operations by providing type-safe queries, automatic object mapping, and support for database migrations. Define Entity Relationships: Use @Relation annotation to…

Roomdb

2 min read

Roomdb

2 min read


May 16

Beginner’s Guide to Data Structures and Algorithms in Kotlin. Part 1

Data Structures Data structures refer to the way data is organized and stored in a computer’s memory. They provide efficient methods for accessing, manipulating, and storing data. Some common data structures include arrays, linked lists, stacks, queues, trees, and hash tables. Code Example: Array val numbers = arrayOf(1, 2, 3, 4, 5) …

Kotlin

3 min read

Beginner’s Guide to Data Structures and Algorithms in Kotlin. Part 1
Beginner’s Guide to Data Structures and Algorithms in Kotlin. Part 1
Kotlin

3 min read


May 16

Some Useful Android Development Tools And Software

1.Android Studio: The official IDE for Android development, providing a comprehensive development environment with tools for coding, debugging, testing, and building Android apps.

Android

11 min read

Some Useful Android Development Tools And Software
Some Useful Android Development Tools And Software
Android

11 min read


Apr 28

Commonly used Dagger Annotations in Kotlin

@Inject: Marks a constructor, field, or method as an injection point. Example: class Car @Inject constructor(engine: Engine) { @Inject lateinit var wheels: Wheels @Inject fun addCarToDriver(driver: Driver) { driver.addCar(this) } } @Module: Marks a class as a provider of dependencies. Example: @Module class CarModule { @Provides…

Kotlin

3 min read

Commonly used Dagger Annotations in Kotlin
Commonly used Dagger Annotations in Kotlin
Kotlin

3 min read


Apr 28

Popular DI: Dagger 2

Dagger 2 is a popular dependency injection framework for Java and Kotlin applications. It simplifies the process of managing dependencies by providing an easy way to declare dependencies and their relationships with other components. The basic idea behind Dagger 2 is to declare all the dependencies of a component in…

Dependency Injection

2 min read

Popular DI: Dagger 2
Popular DI: Dagger 2
Dependency Injection

2 min read


Apr 28

Sealed Class vs Sealed Interface in Kotlin

Sealed class and Sealed interface are two features in Kotlin that allow the creation of restricted class hierarchies. Both of these constructs are used to define a finite set of possible subtypes, and prevent additional subtypes from being defined outside the declared hierarchy. Sealed Class: A sealed class is a class that…

Kotlin

4 min read

Sealed Class vs Sealed Interface in Kotlin
Sealed Class vs Sealed Interface in Kotlin
Kotlin

4 min read


Apr 22

Kotlin Generics - in, out, where

In Kotlin, generics provide the ability to create classes, interfaces, and methods that can work with various types, without specifying the actual type until the object is created. In The <in> keyword in generics is used to specify a type parameter as a contravariant. …

Kotlin

4 min read

Kotlin Generics - in, out, where
Kotlin Generics - in, out, where
Kotlin

4 min read


Apr 22

Constraint Layout: Group and Barriers

ConstraintLayout is a flexible layout that allows you to create complex user interfaces with a flat view hierarchy. It uses constraints to position and size its child views. In Constraint Layout, the Group and Barrier features provide a way to group multiple views and align them together. …

Constraintlayout

2 min read

Constraintlayout

2 min read

Manuchekhr Tursunov

Manuchekhr Tursunov

250 Followers

I am an experienced, skilled, passionate Android Developer. Twitter: https://twitter.com/manuchekhrdev. Github: https://github.com/ManuchekhrT

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams