I wish to capture data from the views in the activity, then pause it, then resume it and ensure that the data has not changed. I tried calling Activity#onPause() in ActivityInstrumentationTestCase2#setUp() but I get an error.
Asked
Active
Viewed 1,467 times
0
-
See codes : http://stackoverflow.com/questions/6812003/difference-between-oncreate-and-onstart/6812066#6812066 – Pankaj Kumar Sep 29 '11 at 08:20
1 Answers
0
press back button, press home button, and keep other applications open for some time. most of them you asked for will be called.. and calling those methods explicitly is a wrong move.

ngesh
- 13,398
- 4
- 44
- 60
-
I understand the activity lifecycle. I have an EditText that I want to make sure the content remains the same after the application has been closed then opened again. – nock Sep 29 '11 at 16:54