Issue
I am using
val activityRule = ActivityTestRule(SingleFragmentActivity::class.java, true, true)
and SingleFragmentActivity is a test helper activity class I used from google GithubBrowseSample
how can I launch activity with bundle ?
Solution
You can get activity from activityRule and you can set extra data for intent
activityRule.activity.intent.putExtra("key",value)
Answered By - I.S
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.