My Android application has a simple method to fire off an intent to display a URL.
protected void launchBrowser(int id) { Uri uri = Uri.parse( getStrin
For Robolectric 3.1 you can
RobolectricPackageManager packageManager = RuntimeEnvironment.getRobolectricPackageManager(); // add necessary logic here