can any one suggest me the logic to sum the numbers using the checkboxes in Android. For instance if checkbox1 have number 100 assigned to it, checkbox2 is assigned with number 200, checkbox 3 is assigned with 300 and checkbox4 is assigned with number 400.
If I select checkbox1 and checkbox3 I should get a Toast message showing the sum or if I choose the checkboxes 1,2,3 then I should get the sum of all the checkboxes that were checked.
The example given in this tutorial deals with similar stuff.
Use similar code for all your CheckBoxes.