I am attempting to create a snackbar any time I check for a network connection and don't find one in a NetworkClient class with static methods. Each of these methods is passed only a Context parameter from the calling activity. Ideally I would like to create a private method within the class like this:
private void showNetworkErrorSnackbar(Context mContext) {
Snackbar.make( whatgoeshere?, mContext.getString(R.string.network_error_message), Snackbar.LENGTH_LONG).show();
}
that can be called from any of the NetworkClient methods. However I am having trouble figuring out how to get a view to put in for the first parameter. It would be too complicated to change the parameters of the methods to include a view as these methods are already being called in every activity.