ActionBarActivity & ActivityUnitTest - NameNotFoundException

后端 未结 1 1656
礼貌的吻别
礼貌的吻别 2021-01-22 18:25

Ok...it is more likely to be my fault ;)

When I do:

public class XmlLifecycleTests extends ActivityUnitTestCase
{ ... (not in setUp)
1条回答
  •  温柔的废话
    2021-01-22 18:29

    It was indeed my fault...switching startActivity to:

    setActivity(launchActivity(pkg, actClass, null));

    Solved all my problems.

    0 讨论(0)
提交回复
热议问题