I have a table in my localhost where I have initally set the Rating(//Column name) value to 0 to all the items.I want to run a loop.But inspite of updating in column it runs else loop.
if(String.valueOf(StrRating).equals("0")){
params.put("ratingPoint",String.valueOf(average));
//if condition doesn't work.
}
else {
float total2 = 0;
total2 += StrRating;
total2 += average;
float finalAverage = total2 / 2;
Toast.makeText(Survey.this,String.valueOf(StrRating),Toast.LENGTH_SHORT).show();
params.put("ratingPoint",String.valueOf(finalAverage));
}