tag:blogger.com,1999:blog-32870248847068299.post5668469883379544113..comments2024-03-18T12:11:33.199-07:00Comments on Android Tutorials for Beginners: Adding Check Boxes In Alert Dialogkamlesh Yadavhttp://www.blogger.com/profile/00613228710241117815noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-32870248847068299.post-86909618101853027672016-07-16T06:50:31.687-07:002016-07-16T06:50:31.687-07:00hi, how can i setText with checked value?hi, how can i setText with checked value?Anonymoushttps://www.blogger.com/profile/15896084385584612642noreply@blogger.comtag:blogger.com,1999:blog-32870248847068299.post-69098624924102362662016-01-13T06:49:46.302-08:002016-01-13T06:49:46.302-08:00Hi, As I do so to be in the dialog window, selecti...Hi, As I do so to be in the dialog window, selecting one of the options, each option send me a separate window.<br />Thank you.Anonymoushttps://www.blogger.com/profile/05050527902427903020noreply@blogger.comtag:blogger.com,1999:blog-32870248847068299.post-7145745013098426122015-12-27T21:04:59.028-08:002015-12-27T21:04:59.028-08:00hi nice onehi nice onesachin mandharehttps://www.blogger.com/profile/03827122257914211487noreply@blogger.comtag:blogger.com,1999:blog-32870248847068299.post-56463614975851470452014-08-17T18:53:43.243-07:002014-08-17T18:53:43.243-07:00hi,
this is helpful!
I have 1 question, how to dis...hi,<br />this is helpful!<br />I have 1 question, how to disable the OK and CANCEL button if the checkbox is unchecked and enable when checkbox checked?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32870248847068299.post-78567537996976993812014-08-17T10:00:27.915-07:002014-08-17T10:00:27.915-07:00hey, if i've many textview in an item of the l...hey, if i've many textview in an item of the listview then how can i get the value of the textview on clicking the checkbox of that item?Anonymoushttps://www.blogger.com/profile/03038432442518342864noreply@blogger.comtag:blogger.com,1999:blog-32870248847068299.post-60247956063919180422014-03-18T05:10:47.736-07:002014-03-18T05:10:47.736-07:00thank you so much! it was very helpfullthank you so much! it was very helpfullAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-32870248847068299.post-54016257701044560722014-03-04T03:35:13.895-08:002014-03-04T03:35:13.895-08:00Thanks :)Thanks :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32870248847068299.post-25141863499925477262013-11-12T00:44:53.749-08:002013-11-12T00:44:53.749-08:00Hi
Thank you for the code...
how to uncheck the ch...Hi<br />Thank you for the code...<br />how to uncheck the checkbox on the cancel button using multichoiceItems..Plz help me..<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32870248847068299.post-62322820318221930312013-11-03T06:23:21.140-08:002013-11-03T06:23:21.140-08:00Thanks for your example.
I'd like to know if t...Thanks for your example.<br />I'd like to know if there's a way to enable/disable checkbox in the dialog at the beginning?(by the time dialog created)季煊https://www.blogger.com/profile/08119996491113224979noreply@blogger.comtag:blogger.com,1999:blog-32870248847068299.post-68346609611946218262013-10-10T03:13:23.371-07:002013-10-10T03:13:23.371-07:00Hi!
Thank you for the tutorial/code!
I tried to p...Hi!<br />Thank you for the tutorial/code! <br />I tried to put the checkboxes in an existig dialog but it doesn't work - no checkboxes visible at all. <br />Then I deleted the setMessage(...) method from the builder and now it works. :) Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32870248847068299.post-3226922177129181732013-05-29T04:35:47.000-07:002013-05-29T04:35:47.000-07:00Firstly I did not got your problem clearly.
If you...Firstly I did not got your problem clearly.<br />If you have checkbox in list view and want to save the state of each checkbox of listView then SharedPreffrence will not work here. You can use an ArrayList of boolean type and can store the state of each checkbox at particular indexes in arraylist.<br /><br />Please let me know for more help.<br />I will write a blog "ListView With CheckBoxes" very soon and explain this, Hope it will resolve your problem.kamlesh Yadavhttps://www.blogger.com/profile/00613228710241117815noreply@blogger.comtag:blogger.com,1999:blog-32870248847068299.post-12058128226837177862013-05-29T02:30:21.355-07:002013-05-29T02:30:21.355-07:00on my listview i have 2 buttons which opened one c...on my listview i have 2 buttons which opened one checkbox each, do i have to make a sharedPreferencesObject in each function which launch a checkbox ? <br /><br />so to sum it up I have to make a sharedPreferenceObject for each object i want to saved the states ? <br /><br />Also for my listview, how can i save the rows ? <br /><br />Thx for your help.Niiaouhttps://www.blogger.com/profile/03381575220367831315noreply@blogger.comtag:blogger.com,1999:blog-32870248847068299.post-67302337880804951332013-05-28T00:54:33.907-07:002013-05-28T00:54:33.907-07:00yes Niiaou there is no need of Integer.valueOf(ind...yes Niiaou there is no need of Integer.valueOf(indexSelected), we can write only indexSelected , both are same. thanks for pointing out.<br /><br />And for your 2nd question you can try following<br /><br /> @Override<br /> public void onClick(DialogInterface dialog, int indexSelected,<br /> boolean isChecked) {<br /> if (isChecked) {<br /> // If the user checked the item, add it to the selected items<br /> seletedItems.add(indexSelected);<br /> sharedPrefferenveObject.putInt("CHECKBOXSTATE",1);// like that<br /> } else if (seletedItems.contains(indexSelected)) {<br /> // Else, if the item is already in the array, remove it<br /> seletedItems.remove(Integer.valueOf(indexSelected));<br />sharedPrefferenveObject.putInt("CHECKBOXSTATE",0)<br /> }kamlesh Yadavhttps://www.blogger.com/profile/00613228710241117815noreply@blogger.comtag:blogger.com,1999:blog-32870248847068299.post-37008962768391594892013-05-22T08:43:36.892-07:002013-05-22T08:43:36.892-07:00hi,
I'm trying your tutorial with checkboxes ...hi, <br />I'm trying your tutorial with checkboxes and i was wondering why are you using "Integer.valueOf(indexSelected)" instead of "indexSelected" aren't they both integer ? <br /><br />I have tried to use your tutorial for the sharedpreferences and it seem kinda hard, i don't understand how i can complete the value of the checkbox from the "setPositiveButton function" <br />Niiaouhttps://www.blogger.com/profile/03381575220367831315noreply@blogger.comtag:blogger.com,1999:blog-32870248847068299.post-33396473533214808872013-05-21T05:22:22.810-07:002013-05-21T05:22:22.810-07:00Hi Niiaou
You can save the check box state using S...Hi Niiaou<br />You can save the check box state using SharedPreffrences. SharedPreffrences is the easiest way to store int, string, boolean values.<br /><br />You can learn about SharedPreffrences in this post http://learnandroideasily.blogspot.in/search/label/SharedPreferences.<br /><br />In the above postI have explained SharedPreferences with example.<br />If you need more help, please let me know.<br /><br />kamlesh Yadavhttps://www.blogger.com/profile/00613228710241117815noreply@blogger.comtag:blogger.com,1999:blog-32870248847068299.post-52662372423924947752013-05-20T15:15:11.017-07:002013-05-20T15:15:11.017-07:00hi, i'm trying to make a dialog box with check...hi, i'm trying to make a dialog box with checkboxes but i'd like to save the boxes i have checked. Do you have an exemple code for that ? Niiaouhttps://www.blogger.com/profile/03381575220367831315noreply@blogger.com