DEV Community

Rahul Chowdhury ๐Ÿ•ถ
Rahul Chowdhury ๐Ÿ•ถ

Posted on

4 2

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. ๐Ÿคž๐Ÿป

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

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. ๐Ÿ˜

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

๐Ÿ‘‹ Kindness is contagious

Please leave a โค๏ธ or a friendly comment on this post if you found it helpful!

Okay