su-vikas/conbeerlib

Sending Broadcast Container test

Opened this issue · 0 comments

https://github.com/su-vikas/conbeerlib/blob/master/conbeerlib/src/main/java/com/suvikas/conbeer/ConBeer.java#L401

intent.setPackage("com.container.com.suvikas.conware");

This is the package you use when attempting to start the broadcast receiver. Is this a typo or correct? Does it have something to do with running in a container?

(Usually optional) Set an explicit application package name that limits the components this Intent will resolve to. If left to the default value of null, all components in all applications will considered. If non-null, the Intent can only match the components in the given application package.

It seems from the code, you want this broadcast to be received and that's how you show it's not a container. But with the above package name, isn't it always going to fail? (and thus think it's a container when its not)