Connect with us

Media

How to Use String Resources In a ViewModel – Android Studio Tutorial

Whenever possible, you should be using string resources to make sure your app can easily be translated to other languages.

Whenever possible, you should be using string resources to make sure your app can easily be translated to other languages. However to read a string resource, you need access to the context which you don’t have in ViewModels. In this video I show you how you can solve this problem.

Advertisement

Trending