after swapping to the left, not able to get the update page the code is same as yours! showing this error after clicking update button (error: Provided document path must not be null.)
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference at com.example.crudoperationapp.MyAdapter.updateData(MyAdapter.java:44) at com.example.crudoperationapp.TouchHelper.onSwiped(TouchHelper.java:23) 44th line in MyAdapter:Intent intent=new Intent(this.activity, MainActivity.class); 23rd line in TouchHelper: final int position=viewHolder.getAdapterPosition();
Thank you. This helped a lot. Good tutorial on updating data to Firestore.
So cool video I learn a lot thanks
Glad you enjoyed it
what about clicks...instead of swipe for editing...please can you suggest on that..!!
after swapping to the left, not able to get the update page the code is same as yours! showing this error after clicking update button (error: Provided document path must not be null.)
I guess u made mistake with.... document id
@@codingstuff070 Not able to solve it yet.
@@shahmeet2671 send me ur code photos at instagram @codingstuff070
Hi, i can store new data but when i tried to update the data, it was crashed and went back to the main activity...why is that? :(
What is the error in logcat
@@codingstuff070 there's no error :(
If ur app crashes... Means there should be an error
Sir On swaping I am not getting the update page
Try to match ur code with my code... Source code is in the description box... If it doesn't solve ur problem let me know
why is the subtitle missing
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
at com.example.crudoperationapp.MyAdapter.updateData(MyAdapter.java:44)
at com.example.crudoperationapp.TouchHelper.onSwiped(TouchHelper.java:23)
44th line in MyAdapter:Intent intent=new Intent(this.activity, MainActivity.class);
23rd line in TouchHelper: final int position=viewHolder.getAdapterPosition();
please help
checked the code 2 times