Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * When a item list is clicked the news item will be shown on the device browser.
- *
- * @param url is Web Url of the news item.
- */
- private void openWebPage(String url) {
- Uri uriWebPage = Uri.parse(url);
- Intent intent = new Intent(Intent.ACTION_VIEW, uriWebPage);
- if (intent.resolveActivity(getPackageManager()) != null) {
- startActivity(intent);
- }
- }
Add Comment
Please, Sign In to add comment