Thanks for your reply.
However, I have a simple problem. Whenever I run my code, it tells me
that "java.lang.IllegalArgumentException: Can't have a viewTypeCount <
1"
This is my code:
@Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        PreferenceScreen root = getPreferenceManager
().createPreferenceScreen(this);
        setPreferenceScreen(root);
        setTitle("Settings");
        SharedPreferences settings = getSharedPreferences("somePref",
0);
        SharedPreferences.Editor editor = settings.edit();
        editor.commit();
    }

Why is this happening?
Thanks,
Noam.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to