I have recycler view in my fragment activity and I am displaying data in card view in main activity. how can I navigate data of card view to another activity. in fragment class I have recycle rview and in main activity I am calling recycle rview adapter
Asked
Active
Viewed 623 times
0
-
1if you don't have DB, you can put information from **CardView** to **Intent** – Alexander Apr 29 '16 at 09:42
-
1Possible duplicate of [How do I pass data between activities on Android?](http://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-on-android) – yennsarah Apr 29 '16 at 09:47
-
@Alexander I have used DB – sapan ravani Apr 29 '16 at 10:20
-
@sapanravani I think you can send the ID of item (not position in list) to activity. And then do query by id from DB and fill details activity. – Alexander Apr 29 '16 at 10:33
1 Answers
0
if you have the data in arrayList you can use this list with intent to pass your data to any activity.
Read this post carefully..
Community
- 1
- 1
Akshat Vajpayee
- 288
- 1
- 3
- 15