Created
May 23, 2015 19:35
-
-
Save vilmarbfilho/32502b5c9459c370d5f4 to your computer and use it in GitHub Desktop.
Get context application Robolectric
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Just use for version 1.x and 2.x: | |
| Robolectric.application; | |
| And for version 3.x: | |
| RuntimeEnvironment.application; | |
| Link: http://stackoverflow.com/questions/13684094/how-can-we-access-context-of-an-application-in-robolectric |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment