[android-developers] ContentObserver onChange() repeats multiple times

2011-06-09 Thread Roger
I haven't found any solution for this problem in the bunch of questions and reference I've searched. So here is. I'm trying to query the data from the CallLog and insert in DB. For that, I've created a COntentObserver as inner class in a Service, and inside onChange() method, I call my method

[android-developers] ContentObserver-Call log clearing crashes

2011-05-16 Thread Balkrishna Talele
Hello I have the following code running with following classes Here, Missed call works perfectly, but when I goto phone call logs and tries to clear it, The application goes to hang state and FORCE CLOSE dialog comes up, I am trying to achieve this in following scenario class livepaper extends

[android-developers] ContentObserver and BroadcastReceiver

2010-12-19 Thread Julius Spencer
Hi, (Note: might be a silly question...) I have an application which has data related to a ContentProvider. The ContentProvider's content is updated from time to time and a ContentObserver seems like a good choice to know about these updates. Is there a way to have a have a cross between a

Re: [android-developers] ContentObserver and BroadcastReceiver

2010-12-19 Thread Dianne Hackborn
No there isn't. This is deliberate, as having apps suddenly getting launched left and right as syncs happen in the background stuff is likely to lead to an undesirable outcome. The approach we generally take is that in cases where there is some kind of change that may happen that an app may

Re: [android-developers] ContentObserver and BroadcastReceiver

2010-12-19 Thread Julius Spencer
Ah ok, thanks for the reply. Regards, Julius. On 20/12/2010, at 3:58 PM, Dianne Hackborn wrote: No there isn't. This is deliberate, as having apps suddenly getting launched left and right as syncs happen in the background stuff is likely to lead to an undesirable outcome. The approach

[android-developers] ContentObserver not working

2010-09-13 Thread Sohan badaya
Hi All, I want to write a code that will notify me whenever my database changes. For example I write a code that extends ContentObserver class and overrieds onChange() method. and in registration time i am giving url Contacts.People.CONTENT_URI. so i want when some modify contacts onChange()

[android-developers] ContentObserver

2009-08-24 Thread vivasvan
Hi, Is it possible to keep a ContentObserver alive in an application that does not have an activity, just broadcast receivers and services invoked through them? Thanks, V. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] ContentObserver _id - SMS, Contact Media

2009-06-23 Thread Shibbs
Hi All, From the past two days I have been closely reading through the ContentObserver discussion on the various scenarios like: 1.) SMS sent 2.) Contacts updated 3.) Media added. 4.) etc... We all are aware that the onChange() of the ContentObserver() doesn't notify us to what has been changed

[android-developers] ContentObserver - SMS - What's wrong with it

2008-12-12 Thread code_android_festival_way
Hello I'm using the following setup to get notified for changes on the SMS provider: http://paste.pocoo.org/show/95066/ But I'm only getting notified (onChange gets called) when I have an incoming SMS and get and unread count of 1. But when I read the message the Observer doesn't get called and