0

I'm developing an app which gets the contents of a sms and do something. I registered a receiver in manifest file and give it a very high priority. It works fine on a android 2.3.3 device. but on a android 2.3.7 device it does nothing! seems like the onReceive() is not invoked on the 2.3.7 device. can anybody help me with this? thank you very much!

jedichen
  • 91
  • 1
  • 7

1 Answers1

0

figure it out! the answer is there are some application that can somehow et the broadcast earlier than i do and stop it! the solution is to register a boot receiver. in the receiver start a service which register a sms receiver. since the dynamic receiver has higher priority than than receiver registered statically, you can get the broadcast now.

jedichen
  • 91
  • 1
  • 7