0

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.

nock
  • 111
  • 1
  • 1
  • 9

1 Answers1

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