<?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: MultiChoice Preference Widget for Android</title>
	<atom:link href="http://blog.350nice.com/wp/archives/240/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.350nice.com/wp/archives/240</link>
	<description></description>
	<lastBuildDate>Fri, 03 Feb 2012 10:18:59 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: adrian</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-2#comment-869</link>
		<dc:creator>adrian</dc:creator>
		<pubDate>Fri, 03 Feb 2012 10:18:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-869</guid>
		<description>Hi i am having the following issues:

1) The changes still applied when i click cancel button.

2) After i made some changes and close the app, when i reopen it, the checkbox are all unchecked again.

I notice some people are having the same issue also. May i know how to solve it?</description>
		<content:encoded><![CDATA[<p>Hi i am having the following issues:</p>
<p>1) The changes still applied when i click cancel button.</p>
<p>2) After i made some changes and close the app, when i reopen it, the checkbox are all unchecked again.</p>
<p>I notice some people are having the same issue also. May i know how to solve it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: R.styleable not created in gen/R &#124; Software development support, software risk,bugs for bugs, risk analysis,</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-2#comment-868</link>
		<dc:creator>R.styleable not created in gen/R &#124; Software development support, software risk,bugs for bugs, risk analysis,</dc:creator>
		<pubDate>Thu, 02 Feb 2012 16:00:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-868</guid>
		<description>[...] R.styleable not created in gen/R        I am trying to implement MultiChoice Preference with reference from http://blog.350nice.com/wp/archives/240/comment-page-1#comments [...]</description>
		<content:encoded><![CDATA[<p>[...] R.styleable not created in gen/R        I am trying to implement MultiChoice Preference with reference from <a href="http://blog.350nice.com/wp/archives/240/comment-page-1#comments" rel="nofollow">http://blog.350nice.com/wp/archives/240/comment-page-1#comments</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: T</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-2#comment-866</link>
		<dc:creator>T</dc:creator>
		<pubDate>Fri, 20 Jan 2012 00:26:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-866</guid>
		<description>Hi,
when I use this with a full screen program, every time I click on a selection item it switches briefly out of fullscreen and back in.
Any Idea how to solve that?
Thanks.

PS: Might be a bug with Android. The solution would be to add dialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
Any idea where in the Java file I should add this?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
when I use this with a full screen program, every time I click on a selection item it switches briefly out of fullscreen and back in.<br />
Any Idea how to solve that?<br />
Thanks.</p>
<p>PS: Might be a bug with Android. The solution would be to add dialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,<br />
				WindowManager.LayoutParams.FLAG_FULLSCREEN);<br />
Any idea where in the Java file I should add this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mysho</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-2#comment-863</link>
		<dc:creator>mysho</dc:creator>
		<pubDate>Mon, 16 Jan 2012 15:48:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-863</guid>
		<description>HI, I have next problem. When I open this multiselect preference and check some values everything works great, but when i reopen this preference nothing is selected. Where is problem ?
thanks ...</description>
		<content:encoded><![CDATA[<p>HI, I have next problem. When I open this multiselect preference and check some values everything works great, but when i reopen this preference nothing is selected. Where is problem ?<br />
thanks &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lukas Hetzenecker</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-2#comment-862</link>
		<dc:creator>Lukas Hetzenecker</dc:creator>
		<pubDate>Thu, 12 Jan 2012 19:28:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-862</guid>
		<description>mysho, I had the same problem

Replace

mClickedDialogEntryIndices = new boolean[getEntries().length];

with

CharSequence[] entries = getEntries();
mClickedDialogEntryIndices = new boolean[(entries != null) ? entries.length : 0];</description>
		<content:encoded><![CDATA[<p>mysho, I had the same problem</p>
<p>Replace</p>
<p>mClickedDialogEntryIndices = new boolean[getEntries().length];</p>
<p>with</p>
<p>CharSequence[] entries = getEntries();<br />
mClickedDialogEntryIndices = new boolean[(entries != null) ? entries.length : 0];</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mysho</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-2#comment-861</link>
		<dc:creator>mysho</dc:creator>
		<pubDate>Thu, 12 Jan 2012 15:08:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-861</guid>
		<description>I used this script for a dynamic preferences 
here is my code:
ListPreferenceMultiSelect refreshTabPreferences = new ListPreferenceMultiSelect(this);
refreshTabPreferences.setDefaultValue(&quot;#ALL#&quot;);
refreshTabPreferences.setKey(&quot;refreshTabs&quot;);
refreshTabPreferences.setTitle(&quot;Refresh Tabs&quot;);
refreshTabPreferences.setDialogTitle(&quot;Refresh Tabs&quot;);
refreshTabPreferences.setSummary(&quot;Auto refresh of tabs&quot;);
refreshTabPreferences.setEntries(tabsEntries);
refreshTabPreferences.setEntryValues(tabsEntriesValues);
firstCategory.addPreference(refreshTabPreferences);

When I run this code I get this error:
java.lang.NullPointerException at lines 58 and 69
58 is: mClickedDialogEntryIndices = new boolean[getEntries().length];

69 is: public ListPreferenceMultiSelect(Context context) {
        this(context, null);
    }

Where is problem ? Thanks a lot ...</description>
		<content:encoded><![CDATA[<p>I used this script for a dynamic preferences<br />
here is my code:<br />
ListPreferenceMultiSelect refreshTabPreferences = new ListPreferenceMultiSelect(this);<br />
refreshTabPreferences.setDefaultValue(&#8221;#ALL#&#8221;);<br />
refreshTabPreferences.setKey(&#8221;refreshTabs&#8221;);<br />
refreshTabPreferences.setTitle(&#8221;Refresh Tabs&#8221;);<br />
refreshTabPreferences.setDialogTitle(&#8221;Refresh Tabs&#8221;);<br />
refreshTabPreferences.setSummary(&#8221;Auto refresh of tabs&#8221;);<br />
refreshTabPreferences.setEntries(tabsEntries);<br />
refreshTabPreferences.setEntryValues(tabsEntriesValues);<br />
firstCategory.addPreference(refreshTabPreferences);</p>
<p>When I run this code I get this error:<br />
java.lang.NullPointerException at lines 58 and 69<br />
58 is: mClickedDialogEntryIndices = new boolean[getEntries().length];</p>
<p>69 is: public ListPreferenceMultiSelect(Context context) {<br />
        this(context, null);<br />
    }</p>
<p>Where is problem ? Thanks a lot &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: go to my website,free coupon</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-2#comment-856</link>
		<dc:creator>go to my website,free coupon</dc:creator>
		<pubDate>Sat, 10 Dec 2011 12:28:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-856</guid>
		<description>&lt;strong&gt;go to my website,free coupon...&lt;/strong&gt;

[...]MultiChoice Preference Widget for Android &#124; 350 Nice[...]...</description>
		<content:encoded><![CDATA[<p><strong>go to my website,free coupon&#8230;</strong></p>
<p>[...]MultiChoice Preference Widget for Android | 350 Nice[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Volodia Krupach</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-2#comment-853</link>
		<dc:creator>Volodia Krupach</dc:creator>
		<pubDate>Wed, 23 Nov 2011 09:52:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-853</guid>
		<description>Thank you!
When supplying custom separator &quot;&#124;&quot; it was treated as regex symbol in:
return ((String)val).split(separator)
so I changed:
return ((String)val).split(&quot;\\Q&quot; + separator + &quot;\\E&quot;)
&quot;\Q&quot; at the beginning and &quot;\E&quot; at the end escape regex symbols.</description>
		<content:encoded><![CDATA[<p>Thank you!<br />
When supplying custom separator &#8220;|&#8221; it was treated as regex symbol in:<br />
return ((String)val).split(separator)<br />
so I changed:<br />
return ((String)val).split(&#8221;\\Q&#8221; + separator + &#8220;\\E&#8221;)<br />
&#8220;\Q&#8221; at the beginning and &#8220;\E&#8221; at the end escape regex symbols.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tos</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-845</link>
		<dc:creator>Tos</dc:creator>
		<pubDate>Tue, 01 Nov 2011 18:36:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-845</guid>
		<description>Thank you for the tutorial. I like it !

I did make a few changes:
1) make static the following:
private static String separator;
static public String[] parseStoredValue(CharSequence val)

2) if you use parseStoredValue() before the constructor is called, field &quot;separator&quot; is null and a crash will happen. You can avoid this by hard coding a value:
private static String separator = DEFAULT_SEPARATOR;</description>
		<content:encoded><![CDATA[<p>Thank you for the tutorial. I like it !</p>
<p>I did make a few changes:<br />
1) make static the following:<br />
private static String separator;<br />
static public String[] parseStoredValue(CharSequence val)</p>
<p>2) if you use parseStoredValue() before the constructor is called, field &#8220;separator&#8221; is null and a crash will happen. You can avoid this by hard coding a value:<br />
private static String separator = DEFAULT_SEPARATOR;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-781</link>
		<dc:creator>Gary</dc:creator>
		<pubDate>Fri, 02 Sep 2011 22:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-781</guid>
		<description>Thank you.</description>
		<content:encoded><![CDATA[<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-774</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 17 Aug 2011 06:02:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-774</guid>
		<description>Hi!
I Get This Error

Binary XML file line #6: Error inflating class ListPreferenceMultiSelect

Thankx.</description>
		<content:encoded><![CDATA[<p>Hi!<br />
I Get This Error</p>
<p>Binary XML file line #6: Error inflating class ListPreferenceMultiSelect</p>
<p>Thankx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DonVincenzo</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-772</link>
		<dc:creator>DonVincenzo</dc:creator>
		<pubDate>Wed, 10 Aug 2011 17:47:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-772</guid>
		<description>Thanks for sharing this, very helpful ... but i have the same question as JRS 

&quot;do you happen to have a short example showing how to populate the initial list and states of the checked boxes from java?&quot;</description>
		<content:encoded><![CDATA[<p>Thanks for sharing this, very helpful &#8230; but i have the same question as JRS </p>
<p>&#8220;do you happen to have a short example showing how to populate the initial list and states of the checked boxes from java?&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curly</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-770</link>
		<dc:creator>Curly</dc:creator>
		<pubDate>Thu, 04 Aug 2011 21:40:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-770</guid>
		<description>Thanks for this :-D</description>
		<content:encoded><![CDATA[<p>Thanks for this <img src='http://blog.350nice.com/wp/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cars</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-759</link>
		<dc:creator>Cars</dc:creator>
		<pubDate>Tue, 14 Jun 2011 22:59:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-759</guid>
		<description>Do you really think that it may be interested in women?</description>
		<content:encoded><![CDATA[<p>Do you really think that it may be interested in women?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: declanshanaghy</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-749</link>
		<dc:creator>declanshanaghy</dc:creator>
		<pubDate>Tue, 24 May 2011 16:26:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-749</guid>
		<description>It is possible but kinda tricky.
You will have to override the portion of the PreferenceScreen which creates the views and attach a listener to the first checkbox which can set the other ones checked/unchecked.

It would be a nice addition to this class.</description>
		<content:encoded><![CDATA[<p>It is possible but kinda tricky.<br />
You will have to override the portion of the PreferenceScreen which creates the views and attach a listener to the first checkbox which can set the other ones checked/unchecked.</p>
<p>It would be a nice addition to this class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rg</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-748</link>
		<dc:creator>rg</dc:creator>
		<pubDate>Mon, 23 May 2011 23:36:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-748</guid>
		<description>I&#039;d like to make the first check box function as a &quot;select all&quot;, is it possible?</description>
		<content:encoded><![CDATA[<p>I&#8217;d like to make the first check box function as a &#8220;select all&#8221;, is it possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RobG</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-741</link>
		<dc:creator>RobG</dc:creator>
		<pubDate>Sat, 14 May 2011 06:02:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-741</guid>
		<description>Very handy code.  I had to add a check for null in the parseStoredValue because I didn&#039;t set any defaults.</description>
		<content:encoded><![CDATA[<p>Very handy code.  I had to add a check for null in the parseStoredValue because I didn&#8217;t set any defaults.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: declanshanaghy</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-732</link>
		<dc:creator>declanshanaghy</dc:creator>
		<pubDate>Thu, 21 Apr 2011 16:48:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-732</guid>
		<description>It is possible, however too complicated to explain in a comment post or over email.

At a high level, how to do it would be to redefine the view that&#039;s used for each line item and attach an image to it aswell as a piece of text.</description>
		<content:encoded><![CDATA[<p>It is possible, however too complicated to explain in a comment post or over email.</p>
<p>At a high level, how to do it would be to redefine the view that&#8217;s used for each line item and attach an image to it aswell as a piece of text.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sregg</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-731</link>
		<dc:creator>sregg</dc:creator>
		<pubDate>Thu, 21 Apr 2011 08:34:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-731</guid>
		<description>Hi,
First, thank you for your great work.
However, I would like to add icons on each items of the list.
I have a multi select preference list to select languages, so I would like to add the corresponding flag on the left of each item.
Is it possible?
If so, how?

Thank you in advance for your help.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
First, thank you for your great work.<br />
However, I would like to add icons on each items of the list.<br />
I have a multi select preference list to select languages, so I would like to add the corresponding flag on the left of each item.<br />
Is it possible?<br />
If so, how?</p>
<p>Thank you in advance for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blog qmsource.net &#187; Nov&#225; Android aplikace &#8211; Menzy ČVUT</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-730</link>
		<dc:creator>Blog qmsource.net &#187; Nov&#225; Android aplikace &#8211; Menzy ČVUT</dc:creator>
		<pubDate>Sun, 17 Apr 2011 19:15:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-730</guid>
		<description>[...] Nastavení se dělá pomocí PreferenceActivity. Vše si můžete nadefinovat v xml a pomocí addPreferencesFromResource(…) vše vložit do aplikace. Setkal jsem se ale s takovou (fatální) maličkostí, že neexistuje Preference typu MultiChoiceCheckbox (jako jí vidíte na obrázku výše, výběr menz). Framework nám poskytuje Multiselect, ale to je jen takový ten “buď a nebo”. Prostě vývojáři se zapomněli. Každopádně existuje docela schůdné řešení, jak dosáhnout požadovaného výsledku. Já jsem se inspiroval zde. [...]</description>
		<content:encoded><![CDATA[<p>[...] Nastavení se dělá pomocí PreferenceActivity. Vše si můžete nadefinovat v xml a pomocí addPreferencesFromResource(…) vše vložit do aplikace. Setkal jsem se ale s takovou (fatální) maličkostí, že neexistuje Preference typu MultiChoiceCheckbox (jako jí vidíte na obrázku výše, výběr menz). Framework nám poskytuje Multiselect, ale to je jen takový ten “buď a nebo”. Prostě vývojáři se zapomněli. Každopádně existuje docela schůdné řešení, jak dosáhnout požadovaného výsledku. Já jsem se inspiroval zde. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

