开发者

How to create, start, resume, pause, stop, destroy android activity during testing

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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜