Android Studio – How can I pass activities to a function in another class?
I am building a shop project for school, and as I decided that instead copying and pasting a function which toasts that there's no internet connection in each activity, I should instead add it to my project manager class, which…