So, I am dealing with that for a few hours and I am officialy lost :)

I created a Hello World for testing. Added an Option Menu with the
Settings button.

Settings Button invoke the EditPreferences activity (.class), and on
its onCreate I use the inflate method to assemble the preference
window:

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    addPreferencesFromResource(R.xml.preferences);
}

The problem is, I don't know how to save this data and access this
data on my other activity.

I tried startActivity and startActivityForResult, but I had problems
getting the results back from the startActivityForResult (I got the
"Failure delivering result ResultInfo" error with null data).

I also read about SharedPreferences but the examples where not good on me :P

Anyone has a snipet or example using XML built preferences and how to
save/access it?

-- 
José de Paula Eufrásio Júnior (coredump)
MCSO, GRC Professional
http://core.eti.br

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to