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. why i always got the app name is null

ApplicationInfo appInfo = mAppList.get(position);
            Log.d(TAG, "package name =" + appInfo.packageName + " name
= " + appInfo.name);

the appInfo.name always null, but packageName is correct.

-- 

2. Does App description matter in Android Market search listing

Lately I am seeing tons of spam apps that have huge app description
text. Take for example  the app "TOP Charlie Sheen Soundboard" from
Soundboard Master.

If you look at their app description it has like three of four pages
of all possible types of search keywords. Some of the keywords listed
are "car stunts jet", "plants vs zombies", "MADDEN NFL 11" and so on.
You get the picture.

My question is : does google do anything about it? Or their algorithm
just boost the app across all categories - which in my opinion is
happening because I do see such junk in lot of search listings in
Android Market.

Does google plan to address these kind of spam apps?

-- 

3. sending parcelable objects to different process

4. Settine 3G only di Galaxy Gio

5. how to clear cache after read a file

6. [SIM unlocked Developer Phone]

7. internet filter