Recyclerview not call any Adapter method :onCreateViewHolder,onBindViewHolder,

Other than @SanatiSharif’s and @sohrab’s answer, you have to follow below mandatory step. Make sure you call setLayoutManager, something like below. recyclerView.setLayoutManager(new LinearLayoutManager(getContext())); before setting adapter into recyclerView, otherwise it is not going to work. You can customize it if you need. this link will give you some idea of how LayoutManager works.

System services not available to Activities before onCreate?

I would bet that you are trying to create a CursorAdapter in the Constructor of your Activity. Context is not available in the Activities Constructor, it is only available in the Activity.onCreate() method and beyond. And for a top tip… Create the CursorAdapter with a Cursor of null in Activity.onCreate() and use ListView.getAdapter().changeCursor(newCursor) to assign … Read more