Skip to content

Broadcast do not honor addDataScheme values #1244

Closed

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

Activity

  1. dodgex commented on Aug 29, 2014

    @dodgex
    ContributorAuthor

    i'm closing this issue as my PR has been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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