Sunday, December 18, 2011

[android-developers] Re: SharedPreferences variable question

TreKing, you are the best! Much of my code is based on code from a
couple of different books. I totally missed that I was creating two
SharedPreferences instances, and, more important, looking at the wrong
one for the year. Your catch - asking why two instances - was enough
to find the problem.

The prefsEditor is used in two locations of other activities: first to
set the year if it has not been set originally, and then to add a year
when the event passes.

THANK YOU!

Best, -Larry

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate