Reputation: 655
What is a reasonable way to filter out specific cmp Strings with an Android IntentFilters which are declared in code in broadcast Receivers (rather than in android.xml)?
The case I'm searching for has:
action = android.intent.action.MAIN
category = android.intent.category.LAUNCHER
Any advice would be greatly appreciated.
Upvotes: 1
Views: 137
Reputation: 655
The issue was the intent filter only works over the application in which it occurs. This meant MAIN and LAUNCHER wasn't finding anything except for application relaunch events which weren't actually occurring. The system freeze up was caused by a separate error on the phone, not by the FILTER actually processing over too much information.
Still not sure how to search within an app by cmp or Component but the bigger issue was not finding stuff outside the application and that has alternative approaches.
Upvotes: 0
Reputation: 3394
I do a positive test for stuff I'm interested in and ignore everything that doesn't conform, as opposed to negatively trying to throw away all possible non-interesting things and keeping what's left. But maybe I've misunderstood your problem.
Upvotes: 1