Hi,
I have the following lines of code in the onCreate() method of a
service that gets created on BOOT_COMPLETE,
Handler handler = new Handler();
ContentResolver resolver = getContentResolver();
ContentObserver observer = new SMSObserver(handler, resolver);
contentResolver.registerContentObserver(Uri.parse("content://
sms"), Boolean.TRUE, observer);
The logs indicate that the SMSObserver is instantiated; upon sending
an SMS, I see the foll in the logs,
.....DEBUG/SmsProvider(624): insert url=content://sms/outbox, match=8
Yet, the @overrride onChange() of the SMSObserver is not invoked - I
initially wondered if it was not being printed out to the logs, so I
tried to throw a new RuntimeException in the first line - the
execution doesn't reach there. I am not sure what bloats the call to
onChange() or why the observer is not getting registered.
Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---