DEV Community

Rahul Chowdhury 🕶
Rahul Chowdhury 🕶

Posted on

Day 6: Android Navigation component and interview preparation

Hey, another day of my job hunt journey and here's another post.

Testing so far

So, I started off with view model testing yesterday. I have to say, it was easier than I have been thinking all this time.

Particularly using the MVVM architecture and some helpers for Kotlin coroutines and LiveData, the testing session was fun.

I mean I had done automated testing on Node/Express and Ruby/RoR but this was the first time I ran a test on Android. It felt good.

Here's my test class from yesterday's session: ElephantProfileViewModelTest.kt

If you're using LiveData and Kotlin coroutines in your view models, these utility classes will help you:

What's for today?

Today I'm mainly focusing on preparing for an introductory call from a company. I can't name it as of now.

Let's see how the call goes. 😁

Also, on the development part, I'll be focusing on getting familiar with Android's Navigation component which is supposed to make navigating between screen a lot easier.

Let's see how that goes.

Wish me luck, guys. 🤞🏻

Top comments (3)

Collapse
 
rahulchowdhury profile image
Rahul Chowdhury 🕶

This handy click listener to navigate to a fragment is dayum!

openProfileButton.setOnClickListener(Navigation.createNavigateOnClickListener(R.id.elephantProfileFragment))
Collapse
 
rajakumardev profile image
Rajakumar

All the best .... :)

Collapse
 
rahulchowdhury profile image
Rahul Chowdhury 🕶

Thanks. 😁