Android: TabHost Action acting weird after killing / OnSaveInstanceState not called

I'm not sure that I am doing something wrong, but since I just stumbled upon a similar error , it could be another mistake. I was wondering if you can confirm this or even know the solution?

Ok, so I have a tab containing two actions A and B.

A is the first tab. Therefore, if I do the following:

  • (open A)
  • switch B
  • close application
  • kill the process
  • open the application again
  • (B is displayed)

then I'm all right. Using the log, I see that "onRestoreInstanceState" is called for both A and B.

Now I do the following:

  • (B is open, I did not switch back to A)
  • switch B
  • close application
  • kill the process
  • open the application again
  • (B is displayed)

"onRestoreInstanceState" B, A. A "onCreate".

A, B, . .

, , - ?

,

Edit:

( A open, , , , ). B "onCreate" , ; , , SavedInstance. .

Edit2:

, . ? 2.2 , 2.3.

+3

All Articles