DB helper not auto filling

I’m trying to make a recipe app that can store images and text.
In order to get data from the database I tried using Cursor but the DB helper file is showing up in red.

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.recipe_list);
        recyclerView = (RecyclerView) findViewById(R.id.RecyclerView);
        list = new ArrayList<>();
        adapter = new RecipeAdapter(getApplicationContext(),list);
        recyclerView.setAdapter(adapter);

        Cursor cursor=MainActivity2.**MyRecipeDBHelper**.getData("")
    }
}

Any help would be appreciated!

Source: Android Questions

LEAVE A COMMENT