Skip to content

Broadcast do not honor addDataScheme values #1244

@dodgex

Description

@dodgex

While writing some tests for a new feature in AndroidAnnotatinos i found an issue with robolectirc when firing broadcasts with a data uril and having BroadcastReceiver whose IntentFilter have an addDataScheme set.

i have build a small sample project that you can test on device and with robolectric.
https://github.com/dodgex/ReceiverDataSchemeBug

in this project i have 3 receiver. one for http dataScheme one for ftp and one for both. each updates a TextView on receive. then i fire first an ftp and then an http intent (on button click). on the device it works as intended but when running with robolectric the http-only receiver also gets my ftp intents

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions