<?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>Wed, 08 Sep 2010 20:07:31 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: pengwang</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-479</link>
		<dc:creator>pengwang</dc:creator>
		<pubDate>Sun, 29 Aug 2010 04:25:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-479</guid>
		<description>i donot  appear &quot;all&quot; in the dialog as you like,
in my array.xml  i used
 
        Alpha Option 01
        Beta Option 02
        Charlie Option 03  
    
so my dialog only appear  three items,donot appear &quot;all &quot; on the top .why?</description>
		<content:encoded><![CDATA[<p>i donot  appear &#8220;all&#8221; in the dialog as you like,<br />
in my array.xml  i used</p>
<p>        Alpha Option 01<br />
        Beta Option 02<br />
        Charlie Option 03  </p>
<p>so my dialog only appear  three items,donot appear &#8220;all &#8221; on the top .why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: declanshanaghy</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-478</link>
		<dc:creator>declanshanaghy</dc:creator>
		<pubDate>Wed, 25 Aug 2010 17:19:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-478</guid>
		<description>You would have to override how the dialog is constructed, replacing it with an Adapter that attaches an onClickListener to the checkboxes (to get click events) or in the getView method find the checkbox and hide/disable it as required.

Tricky but with some poking around i think it could be done.</description>
		<content:encoded><![CDATA[<p>You would have to override how the dialog is constructed, replacing it with an Adapter that attaches an onClickListener to the checkboxes (to get click events) or in the getView method find the checkbox and hide/disable it as required.</p>
<p>Tricky but with some poking around i think it could be done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-477</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Wed, 25 Aug 2010 01:03:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-477</guid>
		<description>Curious how you might implement a max selection on the # of checkboxes allowed in this multicheckbox dialog?  I can&#039;t quite figure out how to do it.  I can determine how many are checked, and ensure that any new checked boxes are not saved, but how do I override the check mark icon from appearing at all.  Any thoughts from the poster or others would be appreciated:)</description>
		<content:encoded><![CDATA[<p>Curious how you might implement a max selection on the # of checkboxes allowed in this multicheckbox dialog?  I can&#8217;t quite figure out how to do it.  I can determine how many are checked, and ensure that any new checked boxes are not saved, but how do I override the check mark icon from appearing at all.  Any thoughts from the poster or others would be appreciated:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leimi</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-476</link>
		<dc:creator>Leimi</dc:creator>
		<pubDate>Wed, 11 Aug 2010 13:05:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-476</guid>
		<description>Answering myself :
In fact we can just put one string containing the values we want separated by the separator from the ListPreferenceMultiSelect.
For example if I want 50, 80 and 90 selected by default and my separator is &quot;xxx&quot; I will just put :
android:DefaultValue=&quot;50xxx80xxx90&quot;
in the xml !
After that, in the Java code, we use the :
ListPreferenceMultiSelect.parseStoredValue()
method !</description>
		<content:encoded><![CDATA[<p>Answering myself :<br />
In fact we can just put one string containing the values we want separated by the separator from the ListPreferenceMultiSelect.<br />
For example if I want 50, 80 and 90 selected by default and my separator is &#8220;xxx&#8221; I will just put :<br />
android:DefaultValue=&#8221;50xxx80xxx90&#8243;<br />
in the xml !<br />
After that, in the Java code, we use the :<br />
ListPreferenceMultiSelect.parseStoredValue()<br />
method !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leimi</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-474</link>
		<dc:creator>Leimi</dc:creator>
		<pubDate>Tue, 03 Aug 2010 18:19:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-474</guid>
		<description>Hey, thanks a lot for this :)
I&#039;d like to know, is there a way to put multiple elements in the &quot;android:DefaultValue&quot; xml attribute so that multiple items are checked by default ?
Thanks,
Leimi</description>
		<content:encoded><![CDATA[<p>Hey, thanks a lot for this <img src='http://blog.350nice.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I&#8217;d like to know, is there a way to put multiple elements in the &#8220;android:DefaultValue&#8221; xml attribute so that multiple items are checked by default ?<br />
Thanks,<br />
Leimi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: declanshanaghy</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-469</link>
		<dc:creator>declanshanaghy</dc:creator>
		<pubDate>Thu, 15 Jul 2010 20:40:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-469</guid>
		<description>I tried to email you an example but it seems the emial address you put in is not valid.

Please email me: declan@350nice.com</description>
		<content:encoded><![CDATA[<p>I tried to email you an example but it seems the emial address you put in is not valid.</p>
<p>Please email me: <a href="mailto:declan@350nice.com">declan@350nice.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JRS</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-468</link>
		<dc:creator>JRS</dc:creator>
		<pubDate>Thu, 15 Jul 2010 20:33:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-468</guid>
		<description>Banging my head against a will with this, do you happen to have a short example showing how to populate the initial list and states of the checked boxes from java?  Would really be appreciated.

Thank You!</description>
		<content:encoded><![CDATA[<p>Banging my head against a will with this, do you happen to have a short example showing how to populate the initial list and states of the checked boxes from java?  Would really be appreciated.</p>
<p>Thank You!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JRS</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-467</link>
		<dc:creator>JRS</dc:creator>
		<pubDate>Wed, 14 Jul 2010 21:37:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-467</guid>
		<description>OK, thanks.  I am trying to build my array list from a list of folders gained through the java code by looking at the SDCard.  Stuck on that, but thank you for the quick reply!

I just don&#039;t know how to pass the array list from java to the listpreference.</description>
		<content:encoded><![CDATA[<p>OK, thanks.  I am trying to build my array list from a list of folders gained through the java code by looking at the SDCard.  Stuck on that, but thank you for the quick reply!</p>
<p>I just don&#8217;t know how to pass the array list from java to the listpreference.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: declanshanaghy</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-466</link>
		<dc:creator>declanshanaghy</dc:creator>
		<pubDate>Wed, 14 Jul 2010 17:40:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-466</guid>
		<description>@array/pref_upload_buckets_default_entries referrs to an array defined in res/values/arrays.xml

In this array you should put the entries that you want to display on the dialog with checkboxes.

@array/pref_upload_buckets_default_values defines the values that co-respond to each of the entries.


P.S.
The names pref_upload_buckets_* are application specific, you should name you arrays accordingly for your application</description>
		<content:encoded><![CDATA[<p>@array/pref_upload_buckets_default_entries referrs to an array defined in res/values/arrays.xml</p>
<p>In this array you should put the entries that you want to display on the dialog with checkboxes.</p>
<p>@array/pref_upload_buckets_default_values defines the values that co-respond to each of the entries.</p>
<p>P.S.<br />
The names pref_upload_buckets_* are application specific, you should name you arrays accordingly for your application</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JRS</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-465</link>
		<dc:creator>JRS</dc:creator>
		<pubDate>Wed, 14 Jul 2010 14:50:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-465</guid>
		<description>Hi, I&#039;m new to java myself and have a (probably) dumb question.

In your XML:
     android:entries=&quot;@array/pref_upload_buckets_default_entries&quot;                android:entryValues=&quot;@array/pref_upload_buckets_default_values&quot;/&gt;

where is &quot;pref_upload_buckets_default_entries&quot; actually defined?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m new to java myself and have a (probably) dumb question.</p>
<p>In your XML:<br />
     android:entries=&#8221;@array/pref_upload_buckets_default_entries&#8221;                android:entryValues=&#8221;@array/pref_upload_buckets_default_values&#8221;/&gt;</p>
<p>where is &#8220;pref_upload_buckets_default_entries&#8221; actually defined?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Santosh</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-461</link>
		<dc:creator>Santosh</dc:creator>
		<pubDate>Thu, 24 Jun 2010 16:00:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-461</guid>
		<description>Excellent! Thanks for publishing this.</description>
		<content:encoded><![CDATA[<p>Excellent! Thanks for publishing this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-460</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sun, 20 Jun 2010 01:16:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-460</guid>
		<description>I have run into a few problems using this code on my HTC Desire.
The ListPreference onSetInitialValue and setValue implementations are both throwing 

java.lang.ClassCastException: java.lang.Boolean


Is there an updated version for 2.1?</description>
		<content:encoded><![CDATA[<p>I have run into a few problems using this code on my HTC Desire.<br />
The ListPreference onSetInitialValue and setValue implementations are both throwing </p>
<p>java.lang.ClassCastException: java.lang.Boolean</p>
<p>Is there an updated version for 2.1?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cash advances online</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-457</link>
		<dc:creator>cash advances online</dc:creator>
		<pubDate>Wed, 21 Apr 2010 00:46:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-457</guid>
		<description>I took java classes a few years ago and am currently pretty new using android. I am going to try this. Thanks for posting this by the way. But hopefully it will all go smooth.</description>
		<content:encoded><![CDATA[<p>I took java classes a few years ago and am currently pretty new using android. I am going to try this. Thanks for posting this by the way. But hopefully it will all go smooth.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: declanshanaghy</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-420</link>
		<dc:creator>declanshanaghy</dc:creator>
		<pubDate>Sun, 24 Jan 2010 08:30:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-420</guid>
		<description>Sorry for the huge delay on getting back to you here.
The choices are stored in the preferences as a plain old string so read it back using something like this:

String rawval = prefs.getStirng(KEY)
String[] selected = ListPreferenceMultiSelect.parseStoredValue(rawval);</description>
		<content:encoded><![CDATA[<p>Sorry for the huge delay on getting back to you here.<br />
The choices are stored in the preferences as a plain old string so read it back using something like this:</p>
<p>String rawval = prefs.getStirng(KEY)<br />
String[] selected = ListPreferenceMultiSelect.parseStoredValue(rawval);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve M</title>
		<link>http://blog.350nice.com/wp/archives/240/comment-page-1#comment-416</link>
		<dc:creator>Steve M</dc:creator>
		<pubDate>Mon, 12 Oct 2009 01:28:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.350nice.com/wp/?p=240#comment-416</guid>
		<description>I am very novice at java and android.
I got the menu to appear and allow multiple selections.  My question is how can I get access to the stored string[] array.
I also want to say thank you for this.</description>
		<content:encoded><![CDATA[<p>I am very novice at java and android.<br />
I got the menu to appear and allow multiple selections.  My question is how can I get access to the stored string[] array.<br />
I also want to say thank you for this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
