Hey guys,
Quick question: I am trying to make a permanent contentObserver that
observes content://sms. The way I do it atm is have an initial
configure Activity with my application that calls the following code:
ContentResolver contentResolver = getContentResolver();
SMSHandler handler = new SMSHandler();
SMSObserver resolver = new SMSObserver(handler);
resolver.setApplication(this.getApplication());
contentResolver.registerContentObserver(Uri.parse("content://sms"),
true, resolver);
Now this all works fine...for a while; it seems that about 20 minutes
after exiting said activity the ContentObserver will get removed and I
will need to re-launch the Configure Activity to re-attach it.
Is there any way that I can make sure that this content observer can
permanently listen for changes without ever being killed?
Thanks in advance!
-James
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---