Closed Bug 927949 Opened 12 years ago Closed 5 years ago

Getting default application handler is broken

Categories

(Firefox for Android Graveyard :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: wesj, Unassigned)

Details

Currently we use ResolveInfo.isDefault [1] to determine if an app is the default handler for an intent. This doesn't seem to work :), so I assume its just querying what is says. "Does this intent filter have the default category set". Yeah... I think maybe our alternative is to use PackageManager.getPreferredActivities() [2] which returns some intentFilters that this app is default for, which we'll then have to compare to our intent. :( [1] http://developer.android.com/reference/android/content/pm/ResolveInfo.html#isDefault [2] https://developer.android.com/reference/android/content/pm/PackageManager.html#getPreferredActivities%28java.util.List%3Candroid.content.IntentFilter%3E,%20java.util.List%3Candroid.content.ComponentName%3E,%20java.lang.String%29
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.