Results 1 to 1 of 1
  1. #1
    akn_39 is offline Member
    Join Date
    May 2014
    Parksville, BC, Canada
    Rep Power

    Default Changing Shared Preferences

    Hello Everyone: I am using the Android PreferenceActivity to update Shared Preferences, and the code I have implemented is based on Preference Fragments. When the Preference Screen is displayed, I want to show the current value of the Preference to be changed, and I am doing this in the Preference Fragment class, using the ListPreference.setSummary method to insert the current value of the Preference into the summary field. This is working well; however, after the user selects a new value and control is passed back to the Preference Screen, I want to be able to update the Summary with the new/selected value.

    I hope this makes sense - can anyone advise me on if this is possible and how/where I would do it.

    Cheers. . .

    Tony N.

    Update: OK, I seem to have found the solution - for anyone who is interested, the process is documented here.
    Last edited by akn_39; 06-04-2014 at 05:59 AM. Reason: Solved

Similar Threads

  1. Swing GUI for preferences
    By noodle_variation_187-X in forum AWT / Swing
    Replies: 5
    Last Post: 04-17-2013, 12:18 PM
  2. Storing preferences
    By kiloran in forum New To Java
    Replies: 3
    Last Post: 01-10-2013, 02:51 PM
  3. Shared Preferences
    By johnsonjp34 in forum Android
    Replies: 0
    Last Post: 12-29-2012, 07:23 PM
  4. Failure of Preferences API under OSX
    By JerryAgin in forum Advanced Java
    Replies: 2
    Last Post: 02-29-2012, 10:20 AM
  5. Replies: 0
    Last Post: 08-14-2010, 10:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts