Register ContentObserver for AppWidgetProvider

by Manjunatha M » Tue, 08 Sep 2009 15:55:57 GMT


Sponsored Links
 Hi,

I am writing an application on the widget framework provided by Android.

I want to listen to contacts DB through the contentObserver and update
accordingly on the db change.

I want to register the contentobserver on the chip is enabled and unregister
on the chip disable.

Now that, i can override onEnabled and onDisabled and implement the methods
to register and unregister the contentobservers.

However, I am able to register  the observer in the onEnabled function.

But in the onDisabled, I am seeing the observer as null.

Does any body know or anybody has docs pertaining to this, please share..

Thanks in advance,
Manjunatha

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Android Initialization (specifically, where does screen timeout get set ??)

Try looking in frameworks/base/packages/SettingProvider/res/values/
defaults.xml

Of course, you don't need to change this if the keys are defined
correctly to wake the system up. Check the laytout file that is being
used in /system/usr/layout and see the documentation for how to define
keys that can cause wake up in:

http://pdk.android.com/online-pdk/guide/keymaps_keyboard_input.html

Mike




--

2. Ask Camera FX

Baru nyoba V3.1 tp koq kalo kita zoom display jd pitih

Rgds
Jus
~ android dream g1 eclair ~

-- 
"Indonesian Android Community [id-android]" 

3. Getting Jamaica on the list of certified countries

4. eclair build error

5. Gesture Builder - no gestures found

6. Temen2 Di Jogja Ngariung .. eh ngumpul yuk .. jgn mpe ketinggalan .. he he

7. Stopping thread when last activity finishes