1

I want to send data from one activity to another activity. However, the activity should not change after sending data. How can I do this without intent

Serkan Aydın
  • 453
  • 1
  • 4
  • 7

1 Answers1

0

The only way is to save data to any place (SharedPreferencies, DataBase, Json file or even use static variables in special Java class), and to retrieve it in another activity after it will be launched. Here are appropriate links:

SharedPreferencies

Room DataBase

Json file

Static variables