I am new to android and trying to implement MVVM for first time .
I am building application to get access all folders having video stored in user mobile for that I need to use cursor .
main problem is how to use cursor without using context in ViewModel. and context this MainActivity.this or getApplicationContext() is not working.
i have to pass context in getAllFolder();
(i have also read in stack that using context in viewmodel is not good approach)
thank you for your help.