Open in app
Home
Notifications
Lists
Stories

Write
Maryam Dashtirahmatabadi
Maryam Dashtirahmatabadi

Home

Dec 14, 2021

Everything About the Kotlin Nullability

With the help of the Kotlin nullability feature, we can better handle the NullPointerException because the compiler can detect many of those problems in compile-time which leads to fewer errors in runtime. So let's see how Kotlin works like that! 🥳 The below snippet is a simple function in Java…

Kotlin

5 min read

Everything About the Kotlin Nullability
Everything About the Kotlin Nullability

Sep 9, 2021

Migrate Dagger-Android to Dagger

As I started refactoring one of my Android projects, I came up with the dependency injection part which used Dagger-Android. Since it’s been recommended not to use it anymore (I’m not going to the details here!) I replaced it with the pure Dagger. Here I’ll show it with very simple…

Android

3 min read

Migrate Dagger-Android to Dagger
Migrate Dagger-Android to Dagger

Dec 28, 2020

How to Use Context Correctly in Android

The Context in Android is one of the most important objects and actually is the Context of the current state of the application with major responsibilities such as: Getting information regarding the activity and application. Getting access to the database, application-specific resources (strings, drawable, …) and classes, filesystems, and shared…

Android

3 min read

How to Use Context Correctly in Android
How to Use Context Correctly in Android

Nov 2, 2020

Why We Should Use Custom Listeners?

If you are getting data by using a web service, you should wait until the data is successfully fetched (or even if it’s not successful) then take your next action. How would you implement it? Maybe by using an OnDataLoadedListener ?🧐. The custom listener (listener/observer pattern) is used to emit…

Listener

2 min read

Why We Should Use Custom Listeners?
Why We Should Use Custom Listeners?

Oct 13, 2020

How to Implement the Parcelable in Android?

This article is about the Parcelable interface in Android. I will start with a short definition of it and then implement it using Java and Kotlin. In the end, I will show you how to add it as a plugin in the android studio. …

Android

3 min read

How to Implement the Parcelable in Android?
How to Implement the Parcelable in Android?

Oct 7, 2020

Custom Toast in Android 📧

In this article, I will show you how to create a custom Toast that can have a custom layout. Then we end up with some libraries that help us o create different custom Toast messages like success, error, info Toasts, and Etc. Create a Custom Text for Toast: The Toast class uses a TextView object for…

Android

3 min read

Custom Toast in Android 📧
Custom Toast in Android 📧

Sep 15, 2020

Android Data Binding and MVVM Architecture Design

You might have heard of Data Binding. It is a library as part of the Android Jetpack that binds UI components to data sources in the XML layout and minimizes the required code for the application’s logic. It has the ability of automatic UI update whenever data is changed and…

Data Binding

4 min read

Android Data Binding and MVVM Architecture Design
Android Data Binding and MVVM Architecture Design

Published in The Startup

·Sep 2, 2020

A Guide on How to Write a Clean Code

In this article, I’m going to talk about writing clean code in general and then end up with some examples. As an Android developer having a clean code has always been challenging for me which needs lots of effort and that’s just coding and coding 💻 … Rules We Should Follow Ignore duplication (imply…

Clean Code

4 min read

A Guide on How to Write a Clean Code
A Guide on How to Write a Clean Code
Maryam Dashtirahmatabadi

Maryam Dashtirahmatabadi

A self-learner

Following
  • Jaewoong Eum

    Jaewoong Eum

  • Gabor Varadi

    Gabor Varadi

  • Siva Ganesh Kantamani

    Siva Ganesh Kantamani

  • Dinorah Tovar

    Dinorah Tovar

  • Manuel Vivo

    Manuel Vivo

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable