0

I have written an SMS app to receive SMSes using the various samples available online. I tested it in a Android 2.3 device and it was working perfectly.

Now, I changed the API level to Android 4.0 and tried running it on an Android 4.0 device and nothing happens. I checked the logcat in Eclipse and nothing is displayed there too.

Any idea what needs to be done for it to work?

Nimantha
  • 6,405
  • 6
  • 28
  • 69
aandroidtest
  • 1,493
  • 8
  • 41
  • 68

1 Answers1

1

Check Once Again that you are actually creating and registering the broadcast receiver in an Activity otherwise it will not get called as after Android 3.1 it requires apps to be in started state to receive broadcasts.

Nimantha
  • 6,405
  • 6
  • 28
  • 69
Bhavesh Patadiya
  • 25,740
  • 15
  • 81
  • 107
  • Sorry I am not sure, what u meant. How do i implement to ensure, "apps to be in started state to receive broadcasts"? For example, a SMS application will only becomes active after receiving the SMS and not before that. – aandroidtest Dec 05 '12 at 03:27