How to set Intent and Configuration before starting activity in Robolectric

31 views
Skip to first unread message

Kral Oz

unread,
May 15, 2013, 11:17:05 PM5/15/13
to robol...@googlegroups.com

My Activity -that i want to test- has to have extras before starting which had to be located in Intent. How can i add them before lunching the activity in testing?

And the same function is also needed to set the "Locale" in "Configuration" in Activity.

I think that we have to use shadowActivity but i could not find any example for that.

Please help. I could not fix it since 2 weeks... Thank you!

Reply all
Reply to author
Forward
0 new messages