{"action":"closed","issue":{"url":"https://api.github.com/repos/commons-app/apps-android-commons/issues/1156","repository_url":"https://api.github.com/repos/commons-app/apps-android-commons","labels_url":"https://api.github.com/repos/commons-app/apps-android-commons/issues/1156/labels{/name}","comments_url":"https://api.github.com/repos/commons-app/apps-android-commons/issues/1156/comments","events_url":"https://api.github.com/repos/commons-app/apps-android-commons/issues/1156/events","html_url":"https://github.com/commons-app/apps-android-commons/issues/1156","id":297652797,"number":1156,"title":"Crashes; user has no web browser installed and tries to open any URL","user":{"login":"hismaeel","id":25305892,"avatar_url":"https://avatars1.githubusercontent.com/u/25305892?v=4","gravatar_id":"","url":"https://api.github.com/users/hismaeel","html_url":"https://github.com/hismaeel","followers_url":"https://api.github.com/users/hismaeel/followers","following_url":"https://api.github.com/users/hismaeel/following{/other_user}","gists_url":"https://api.github.com/users/hismaeel/gists{/gist_id}","starred_url":"https://api.github.com/users/hismaeel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hismaeel/subscriptions","organizations_url":"https://api.github.com/users/hismaeel/orgs","repos_url":"https://api.github.com/users/hismaeel/repos","events_url":"https://api.github.com/users/hismaeel/events{/privacy}","received_events_url":"https://api.github.com/users/hismaeel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"hismaeel","id":25305892,"avatar_url":"https://avatars1.githubusercontent.com/u/25305892?v=4","gravatar_id":"","url":"https://api.github.com/users/hismaeel","html_url":"https://github.com/hismaeel","followers_url":"https://api.github.com/users/hismaeel/followers","following_url":"https://api.github.com/users/hismaeel/following{/other_user}","gists_url":"https://api.github.com/users/hismaeel/gists{/gist_id}","starred_url":"https://api.github.com/users/hismaeel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hismaeel/subscriptions","organizations_url":"https://api.github.com/users/hismaeel/orgs","repos_url":"https://api.github.com/users/hismaeel/repos","events_url":"https://api.github.com/users/hismaeel/events{/privacy}","received_events_url":"https://api.github.com/users/hismaeel/received_events","type":"User","site_admin":false},"assignees":[{"login":"hismaeel","id":25305892,"avatar_url":"https://avatars1.githubusercontent.com/u/25305892?v=4","gravatar_id":"","url":"https://api.github.com/users/hismaeel","html_url":"https://github.com/hismaeel","followers_url":"https://api.github.com/users/hismaeel/followers","following_url":"https://api.github.com/users/hismaeel/following{/other_user}","gists_url":"https://api.github.com/users/hismaeel/gists{/gist_id}","starred_url":"https://api.github.com/users/hismaeel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hismaeel/subscriptions","organizations_url":"https://api.github.com/users/hismaeel/orgs","repos_url":"https://api.github.com/users/hismaeel/repos","events_url":"https://api.github.com/users/hismaeel/events{/privacy}","received_events_url":"https://api.github.com/users/hismaeel/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-02-16T01:12:45Z","updated_at":"2018-03-03T19:14:16Z","closed_at":"2018-03-03T19:14:16Z","author_association":"CONTRIBUTOR","body":" So I had disabled my web browser because I was using it a lot at bedtime. Because of this, I kept getting a \"No Activity Found\" exception for many/any click(s) that open a web browser, such as on click on license and category of a photo, \"open in web browser\" option, links in the about page, etc.  The documentation for Intent actually reads this \r\n\r\n[> Caution: If there are no apps on the device that can receive the implicit intent, your app will crash when it calls startActivity()](https://developer.android.com/guide/components/intents-common.html)\r\n\r\nThe solution is simple and good code practice; start activity only after checking for null activity. Launch only if activity is not null, otherwise post a[ toast](https://developer.android.com/guide/topics/ui/notifiers/toasts.html) message, something like \"no app found to open URL\" (I've seen many other apps give me such a toast recently)\r\n\r\nI've started working on this; Expect a pull request soon :-) "}}
{"actor":{"display_login":"misaochan"}}