Skip to content Skip to sidebar Skip to footer

Cannot Resolve Symbol Id

I have a recyclerView called 'Notes', I'm trying to add an new recylerview called 'Assignments' which will be created inside the notes recylerview item. When I click on a recylervi

Solution 1:

When you click on recyclerView item of Notes, get the noteID usinng which position is clicked.

now when you open ClassworkActivity, bind that id with intent and get it in ClassworkActivity onCreate() and while creating AssignmentAdapter use that noteID as id.

pass noteId using intent as:

Intent myIntent = newIntent(CurrentActivity.this, ClassworkActivity.class); // UPDATE CURRENT ACTIVITY NAME
myIntent.putExtra("noteID", noteID);
startActivity(myIntent);

and receive in ClassworkActivity onCreate() as:

IntentmIntent= getIntent();
intid= mIntent.getIntExtra("noteID", 0);

Post a Comment for "Cannot Resolve Symbol Id"