I can't seem to get it to work. When I run each separately, it would run fine. But when I tried to include a Broadcast Receiver in my device admin app, it crashes. Here a link that I've asked over at stackoverflow, but no one seems to have any answer. If anyone could help point out what I did wrong, or what I could do to make it work.
What I am trying to do is having a Broadcast Receiver listen for incoming SMS, and if that SMS contain certain keyword it will invoke the policy on the device admin app. Please advise. Thanks.