unit testing - android tests for an activity inside a directory -
i using android studio
. noticed idea created package (without being referenced in manifest file or in gradle
build file). when run test against mainactivity
, going well, when want run test activity inside package
i message :
java.lang.runtimeexception: unable resolve activity for: intent { act=android.intent.action.main flg=0x10000000 cmp=com.echopen.asso.echopen/.custom.customactivity } @ android.app.instrumentation.startactivitysync(instrumentation.java:384) @ android.test.instrumentationtestcase.launchactivitywithintent(instrumentationtestcase.java:119) @ android.test.instrumentationtestcase.launchactivity(instrumentationtestcase.java:97) @ android.test.activityinstrumentationtestcase2.getactivity(activityinstrumentationtestcase2.java:104) @ com.echopen.asso.echopen.custom.customactivitytest.setup(customactivitytest.java:19)
you can add customactivity
in manifest file
<activity android:name=".custom.customactivity"> </activity>
Comments
Post a Comment