Monitor internet connection in androidCreate a class that notifies observe classes about the network connection and disconnection. /** * Internet Util class to observer connection. */ class InternetConnectionUtil constructor(context: Context, listener: (Int) -> Unit) { init { ...1 min read·surajbahadur.hashnode.devDec 22, 2022
Firebase Notifications in Background & Foreground in AndroidFirebase Notifications in Background & Foreground in Android3 min read·surajbahadur.hashnode.devDec 14, 2021
Compare Two Date In KotlinHow to compare to date in kotlin android java1 min read·surajbahadur.hashnode.devDec 9, 2021
50 Productivity And Personal Development Skills For Career And BusinessSkills For Before Starting To Work Self-awareness and self-exploration to choose the right life goals for yourself Figuring out and deciding on your life purpose and direction Goal setting to set large, achievable goals that will excite and motiva...2 min read·surajbahadur.hashnode.devDec 8, 2021
Keep these things in mind when using ViewModel in your applicationDon't let ViewModels know about Android framework classes. (A general rule of thumb is to make sure there are not(android.) imports in your ViewModels(with an exception like android.arch.) Keep the logic in activities and Fragments to a minimum. Av...1 min read·surajbahadur.hashnode.devDec 8, 2021