0

I have a TabLayout with two Tabs or Fragments.

In one Fragment I want to save for example text from edittext before switching tab or closing app.

I tried with onStop. It save the content before closing app. But when I go to second tab, the app closes without exception.

Why? Are the a solution for this problem?

Dharman
  • 26,923
  • 21
  • 73
  • 125

0 Answers0