OnSharedPreferenceChangeListener never receives callback

by Mark Murphy » Wed, 16 Jun 2010 04:29:32 GMT


Sponsored Links
 


It shouldn't be. It works in services, and services never have the focus.


Try using "this" instead of "getApplicationContext()"

-- 
Mark Murphy
CommonsWare
mmur...@commonsware.com
 http://commonsware.com 

--



OnSharedPreferenceChangeListener never receives callback

by Connick » Wed, 16 Jun 2010 04:40:32 GMT


 No effect. I'm registering the listener in onCreate of my activity, not sure
if that has any implications. I've also been assuming this should fire when
prefs are either changed via a pref activity and/or when a commit is called
from a shared pref editor?

-Stace







>


Sponsored Links


OnSharedPreferenceChangeListener never receives callback

by Mark Murphy » Wed, 16 Jun 2010 04:42:42 GMT


 


Correct.

-- 
Mark Murphy
CommonsWare
mmur...@commonsware.com
 http://commonsware.com 

--



OnSharedPreferenceChangeListener never receives callback

by Connick » Wed, 16 Jun 2010 04:43:05 GMT


 Interesting, it only works if used within an activity that extends
PreferenceActivity. Crap.







>>



OnSharedPreferenceChangeListener never receives callback

by Mark Murphy » Wed, 16 Jun 2010 04:46:40 GMT


 


So long as all components are using the same preference file, it
should work for modifications from any source. That is what I meant by
"correct" in my previous reply.

-- 
Mark Murphy
CommonsWare
mmur...@commonsware.com
 http://commonsware.com 

--



OnSharedPreferenceChangeListener never receives callback

by Connick » Wed, 16 Jun 2010 05:18:50 GMT


 Will file a big, thx!






>



OnSharedPreferenceChangeListener never receives callback

by Connick » Wed, 16 Jun 2010 05:53:13 GMT


 Cancel that, I just grasped what you were getting at. :)







>>



Other Threads

1. Android integrated with Google App Engine

I need to do an integration with Android app with the app GAME, to
be able to get information datastore, so that you can not is still no
solution to integrate to use only the datastore.

   Was in need of a direction not to be necessary to have to implement
solutions coming out of the definition of Arquitur api's.

-- 

2. Bright Star Corp Legit?

I'm a noob, and have looked extensively and have found only other
complaints...

Q: Who are these people? Are they legit?

Q: Why does Google use them?

Bright Star Corp is where I got redirected to buy ADP1, and I tried to
checkout, and was "declined due to fraud service".   I tried again a
few days later, same thing.

I have recently found, 10 days later, that there is 800$ "Pending" on
my credit card, and of course contacted the number supplied on the
credit card site for this "BrightStarCorp".  I left 11 voice mails,
and no call back.

One more call today, and then I turn the credit card co. on them, and
the OK Atty Gen's office.

I'm concerned that they are not supposed to be getting these redirects
and it really looks like a scam to me.  Do you folks know more about
it?   Does Google have a developer support number?  I can't find any
phone numbers.

G.

-- 

3. Urgent HELP pls - Video Recording

4. Adding HeaderView to ListView results in occasional IndexOutOfBoundsException

5. show outgoing call dialog while calling

6. Media Player:Plugin in

7. Programmatically switch resource files