I came to know that getSupportLoaderManager is deprecated. But I want to call:
getSupportLoaderManager().initLoader(0, null, mRecipeLoaderManager);
>
Same problem occurred with me!
getSupportLoaderManger() can be replaced by LoaderManager.getInstance(this) and the further code remains the same. So, finally your code will become:
LoaderManager.getInstance(this).initLoader(0, null, mRecipeLoaderManager);
You can refer Android official documentation: https://developer.android.com/reference/androidx/fragment/app/FragmentActivity#getSupportLoaderManager()