O
O
Orkhan Hasanli2018-05-10 13:51:54
Android
Orkhan Hasanli, 2018-05-10 13:51:54

How to get and add information to another Activity?

Good day!
I am using SQLite & RecyclerView to display information in MainActivity. When you click on one of the elements, another Activity opens, which displays information about the selected element. Information can be quite voluminous (text, for example).
The question is what is better: to receive all data from the database in MainActivity and use putExtra to transfer information to another activity, or to transfer the element id to another activity and get information from the database from another activity and display it to the user?
Thanks in advance for your answers!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2018-05-10
@azerphoenix

option number 2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question