to answer my own question from Aug 28th: if you put this code in the method.xml you should have the settings screen up and running in no time, you should of course define the Prefs Activity in the Manifest.xml <input-method xmlns:android="http://schemas.android.com/apk/res/android" android:settingsActivity="Prefs" android:name="@string/settings_title" android:isDefault="true" />
On Fri, Aug 28, 2009 at 1:32 AM, Spektor Yaron <spekt...@gmail.com> wrote: > Hi, > this seems to be an easy one, but i am not finding a solution for > it...actually there are 2 different questions relating to settings here: > > i created a PreferenceActivity for my application (it is a softkeyboard) i > am trying to add those settings to the Settings->Locale & Text screen next > to my Keboard. do i need to define something in the manifest to make it > appear there too? > if so my manifest is below: > <activity android:name="Prefs" android:label="@string/settings_title"> > <intent-filter> > <action android:name="android.intent.action.MAIN"/> > </intent-filter> > </activity> > > the activity works fine if i get to it through the application > > > > also, i was trying to get a ListPreference value to show it in the summary. > i could not get it unless i made a change to the list (invoking > ChangeListener). why can i not see it when i create the ListPrefernece (i am > guessing it is something to do with the lifecycle but i don't know what) > i ended up taking the existing preferences and setting them in the list. it > seems weird to do that as, obviously, the list knows it's default value. it > shows it to me when i click it. > SharedPreferences prefs = > PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); > defaultStr =prefs.getString(LIST_PREF, "Not Available"); > listPref.setSummary("Current default value is: "+defaultStr); > > Thanks, > -- > Yaron Spektor > -- Yaron Spektor --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---