Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ContentResolver cr = getContentResolver();
- Cursor cursor = cr.query(MyProviderContract.RECIPE_URI,null, null,null,null);
- RecyclerView recyclerView = findViewById(R.id.recipeList);
- recyclerView.setLayoutManager(new LinearLayoutManager(this));
- adapter = new SimpleRecyclerViewAdapter(this, cursor);
- recyclerView.setAdapter(adapter);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement