Crash: ActivityNotFoundException when opening Help from the settings menu

Open Beginner friendly
#2,838 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
android, java
Domain
mobile-dev

Research direction

The crash comes from the Help entry in fr.neamar.kiss.SettingsActivity.onOptionsItemSelected (SettingsActivity.java:126), which starts an ACTION_VIEW intent for the help URL without checking for a handler. Read the fix from #2815 in MainActivity for the "Android settings" entry and apply the same guard here. Done when opening Help with no browser available shows no crash, with the existing behaviour kept when a browser exists.

Written by the indexing model from the issue text.

Description

crash
Type Crash
Affected users (last 30 days) 1
Reports (last 30 days) 1
App versions 226
Android API levels 33
Sample device Hisense U70 Pro, API 33, v226

Play Console issue ID: c57fe247d47edfb604bfffeea2c71853

android.content.ActivityNotFoundException
  at android.app.Activity.startActivity (Activity.java:5925)
  at fr.neamar.kiss.SettingsActivity.onOptionsItemSelected (SettingsActivity.java:126)
  at android.app.Activity.onMenuItemSelected (Activity.java:4438)

The Help menu entry in settings starts an ACTION_VIEW intent for http://help.kisslauncher.com without checking that something handles it (no browser installed or enabled). Same pattern as #2815, which only fixed the "Android settings" entry in MainActivity. Unchanged on master.

Dominant language
Java
Stars
3.5k
Forks
664
Avg merge
21h 40m
Merged PRs (30d)
106

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Neamar/KISS

All issues in Neamar/KISS

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.