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
  • 30,962
  • 25
  • 85
  • 135

0 Answers0