<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Android Preferences</title>
	<atom:link href="http://www.old.kaloer.com/android-preferences/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.old.kaloer.com/android-preferences/</link>
	<description>Programming, Web, Software</description>
	<lastBuildDate>Sun, 07 Mar 2010 08:09:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: biji</title>
		<link>http://www.old.kaloer.com/android-preferences/comment-page-1/#comment-1163</link>
		<dc:creator>biji</dc:creator>
		<pubDate>Sun, 07 Mar 2010 08:09:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaloer.com/?p=64#comment-1163</guid>
		<description>Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mads Kalør</title>
		<link>http://www.old.kaloer.com/android-preferences/comment-page-1/#comment-1162</link>
		<dc:creator>Mads Kalør</dc:creator>
		<pubDate>Fri, 05 Mar 2010 11:59:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaloer.com/?p=64#comment-1162</guid>
		<description>Hi Alex,
It&#039;s updated now. Thanks for the tip</description>
		<content:encoded><![CDATA[<p>Hi Alex,<br />
It&#8217;s updated now. Thanks for the tip</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.old.kaloer.com/android-preferences/comment-page-1/#comment-1161</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 05 Mar 2010 11:52:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaloer.com/?p=64#comment-1161</guid>
		<description>Line 39 in the xml file should say Preference instead of Preferencea</description>
		<content:encoded><![CDATA[<p>Line 39 in the xml file should say Preference instead of Preferencea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Come realizzare una form per le opzioni - Forum Android Italiano</title>
		<link>http://www.old.kaloer.com/android-preferences/comment-page-1/#comment-1157</link>
		<dc:creator>Come realizzare una form per le opzioni - Forum Android Italiano</dc:creator>
		<pubDate>Tue, 23 Feb 2010 15:50:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaloer.com/?p=64#comment-1157</guid>
		<description>[...] inviato da Andrea   Whoaaa che figooo.. hai un esempio?    prova qui  Android Preferences - Kaloer.com e qui Android Preferences &#124; AndroidGuys  e poi ovviamente usa gli esempi che trovi su google code   [...]</description>
		<content:encoded><![CDATA[<p>[...] inviato da Andrea   Whoaaa che figooo.. hai un esempio?    prova qui  Android Preferences &#8211; Kaloer.com e qui Android Preferences | AndroidGuys  e poi ovviamente usa gli esempi che trovi su google code   [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris H</title>
		<link>http://www.old.kaloer.com/android-preferences/comment-page-1/#comment-1148</link>
		<dc:creator>Chris H</dc:creator>
		<pubDate>Sun, 17 Jan 2010 22:58:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaloer.com/?p=64#comment-1148</guid>
		<description>I&#039;m creating my first android app. and have a problem with my preferences..

I have one list item in my preferences (and then some info/&quot;buttons&quot;). The &quot;preferences view&quot; (which is loaded from a service) is displayed correctly (and I can&#039;t see anything strange in the log/output). But when I click on the item to change it, i get an empty dialog (only title and cancel button, no list items).
Any idea about what can be the problem?

You can see the content of my xml-files here: http://pastebin.com/m4c52c3a2 (titles etc in Swedish..)</description>
		<content:encoded><![CDATA[<p>I&#8217;m creating my first android app. and have a problem with my preferences..</p>
<p>I have one list item in my preferences (and then some info/&#8221;buttons&#8221;). The &#8220;preferences view&#8221; (which is loaded from a service) is displayed correctly (and I can&#8217;t see anything strange in the log/output). But when I click on the item to change it, i get an empty dialog (only title and cancel button, no list items).<br />
Any idea about what can be the problem?</p>
<p>You can see the content of my xml-files here: <a href="http://pastebin.com/m4c52c3a2" rel="nofollow">http://pastebin.com/m4c52c3a2</a> (titles etc in Swedish..)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dale Wiles</title>
		<link>http://www.old.kaloer.com/android-preferences/comment-page-1/#comment-1132</link>
		<dc:creator>Dale Wiles</dc:creator>
		<pubDate>Thu, 26 Nov 2009 16:34:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaloer.com/?p=64#comment-1132</guid>
		<description>To Nicolas Raoul@10:57

I had to replace the Preferencea tag with org.kaloer.preferenceexample.Preferencea, and then made a class called Preferencea which just had:

public class Preferencea extends Preference {
	public Preferencea(Context context, AttributeSet attrs) {
        super(context, attrs);
	}
}

and it worked fine.</description>
		<content:encoded><![CDATA[<p>To Nicolas Raoul@10:57</p>
<p>I had to replace the Preferencea tag with org.kaloer.preferenceexample.Preferencea, and then made a class called Preferencea which just had:</p>
<p>public class Preferencea extends Preference {<br />
	public Preferencea(Context context, AttributeSet attrs) {<br />
        super(context, attrs);<br />
	}<br />
}</p>
<p>and it worked fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mads Kalør</title>
		<link>http://www.old.kaloer.com/android-preferences/comment-page-1/#comment-1128</link>
		<dc:creator>Mads Kalør</dc:creator>
		<pubDate>Wed, 25 Nov 2009 10:55:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaloer.com/?p=64#comment-1128</guid>
		<description>Hi Dean, 

You&#039;re right, I just didn&#039;t tell it as I thought the readers knew that :-) But I&#039;ll add it now.</description>
		<content:encoded><![CDATA[<p>Hi Dean, </p>
<p>You&#8217;re right, I just didn&#8217;t tell it as I thought the readers knew that <img src='http://www.old.kaloer.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  But I&#8217;ll add it now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dean</title>
		<link>http://www.old.kaloer.com/android-preferences/comment-page-1/#comment-1127</link>
		<dc:creator>Dean</dc:creator>
		<pubDate>Wed, 25 Nov 2009 10:46:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaloer.com/?p=64#comment-1127</guid>
		<description>Your blog removed the xml code for AndroidManifest.xml on last comment, here it is with &#039;less than&#039; symbol replaced with ^ (hat):

^activity
  android:name=&quot;.Preferences&quot;
  android:label=&quot;@string/set_preferences&quot;^
^/activity^

;-)</description>
		<content:encoded><![CDATA[<p>Your blog removed the xml code for AndroidManifest.xml on last comment, here it is with &#8216;less than&#8217; symbol replaced with ^ (hat):</p>
<p>^activity<br />
  android:name=&#8221;.Preferences&#8221;<br />
  android:label=&#8221;@string/set_preferences&#8221;^<br />
^/activity^</p>
<p> <img src='http://www.old.kaloer.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dean</title>
		<link>http://www.old.kaloer.com/android-preferences/comment-page-1/#comment-1126</link>
		<dc:creator>Dean</dc:creator>
		<pubDate>Wed, 25 Nov 2009 10:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaloer.com/?p=64#comment-1126</guid>
		<description>I found that in order for the preferences activity to be shown, you need to add the following lines as children of the Application tag in the AndroidManifest.xml:




NOTE: You will also want to define the string: set_preferences in res/values/strings.xml.

Good tutorial, thanx.</description>
		<content:encoded><![CDATA[<p>I found that in order for the preferences activity to be shown, you need to add the following lines as children of the Application tag in the AndroidManifest.xml:</p>
<p>NOTE: You will also want to define the string: set_preferences in res/values/strings.xml.</p>
<p>Good tutorial, thanx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: props to nicolas</title>
		<link>http://www.old.kaloer.com/android-preferences/comment-page-1/#comment-1092</link>
		<dc:creator>props to nicolas</dc:creator>
		<pubDate>Sun, 25 Oct 2009 05:02:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaloer.com/?p=64#comment-1092</guid>
		<description>Thanks to the author for the great examples, and Nicolas for his correction. This works great.</description>
		<content:encoded><![CDATA[<p>Thanks to the author for the great examples, and Nicolas for his correction. This works great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Twitted by coffeecoders</title>
		<link>http://www.old.kaloer.com/android-preferences/comment-page-1/#comment-641</link>
		<dc:creator>Twitted by coffeecoders</dc:creator>
		<pubDate>Tue, 08 Sep 2009 15:31:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaloer.com/?p=64#comment-641</guid>
		<description>[...] This post was Twitted by coffeecoders [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was Twitted by coffeecoders [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas Raoul</title>
		<link>http://www.old.kaloer.com/android-preferences/comment-page-1/#comment-496</link>
		<dc:creator>Nicolas Raoul</dc:creator>
		<pubDate>Fri, 28 Aug 2009 10:57:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaloer.com/?p=64#comment-496</guid>
		<description>Thanks for the information!

I got a NullPointerException on line 18 of Preferences.java because customPref is null, so I added:
if(customPref == null) {
    customPref = new Preference(getBaseContext());
}

Also, I removed the &quot;Preferencea&quot; XML block, is it a typo or something to implement to oneself?

People might want to put the XML file in the layout directory. In that case, they would change R.xml.preferences to R.layout.preferences in the Java code.

And now it works for me :-)</description>
		<content:encoded><![CDATA[<p>Thanks for the information!</p>
<p>I got a NullPointerException on line 18 of Preferences.java because customPref is null, so I added:<br />
if(customPref == null) {<br />
    customPref = new Preference(getBaseContext());<br />
}</p>
<p>Also, I removed the &#8220;Preferencea&#8221; XML block, is it a typo or something to implement to oneself?</p>
<p>People might want to put the XML file in the layout directory. In that case, they would change R.xml.preferences to R.layout.preferences in the Java code.</p>
<p>And now it works for me <img src='http://www.old.kaloer.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mads Kalør</title>
		<link>http://www.old.kaloer.com/android-preferences/comment-page-1/#comment-365</link>
		<dc:creator>Mads Kalør</dc:creator>
		<pubDate>Tue, 18 Aug 2009 16:08:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaloer.com/?p=64#comment-365</guid>
		<description>Hmm.. I&#039;m sorry, but I don&#039;t really know how to do it. I think you need to ask someone else, for example at the official google groups page http://groups.google.com/group/android-developers

best regards
Mads Kalør</description>
		<content:encoded><![CDATA[<p>Hmm.. I&#8217;m sorry, but I don&#8217;t really know how to do it. I think you need to ask someone else, for example at the official google groups page <a href="http://groups.google.com/group/android-developers" rel="nofollow">http://groups.google.com/group/android-developers</a></p>
<p>best regards<br />
Mads Kalør</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guilherme</title>
		<link>http://www.old.kaloer.com/android-preferences/comment-page-1/#comment-363</link>
		<dc:creator>Guilherme</dc:creator>
		<pubDate>Tue, 18 Aug 2009 15:56:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaloer.com/?p=64#comment-363</guid>
		<description>i have tried to get the shared preferences to point to a xml file , but it does not find it on the first run, and on the second it creates references some other internal file( after the first time i use the edit method) that i cannot find, because it keeps the preferences, but not in my file ... 
thanks for the attention
Guilherme</description>
		<content:encoded><![CDATA[<p>i have tried to get the shared preferences to point to a xml file , but it does not find it on the first run, and on the second it creates references some other internal file( after the first time i use the edit method) that i cannot find, because it keeps the preferences, but not in my file &#8230;<br />
thanks for the attention<br />
Guilherme</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mads Kalør</title>
		<link>http://www.old.kaloer.com/android-preferences/comment-page-1/#comment-362</link>
		<dc:creator>Mads Kalør</dc:creator>
		<pubDate>Tue, 18 Aug 2009 15:18:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaloer.com/?p=64#comment-362</guid>
		<description>No, you do not need a preference activity for that. You don&#039;t need a xml/preferences.xml file at all. This is only used if you have a preference activity. If you need a xml file with your preferences I don&#039;t think you should use the xml/preferences file. The file might be placed in the res/raw file where you parse it like any other xml file and save the data as a shared preference. I don&#039;t think you can get preferences from a xml/preferences.xml file without having a preference activiy.</description>
		<content:encoded><![CDATA[<p>No, you do not need a preference activity for that. You don&#8217;t need a xml/preferences.xml file at all. This is only used if you have a preference activity. If you need a xml file with your preferences I don&#8217;t think you should use the xml/preferences file. The file might be placed in the res/raw file where you parse it like any other xml file and save the data as a shared preference. I don&#8217;t think you can get preferences from a xml/preferences.xml file without having a preference activiy.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
