maximun total quantity 5 is add to cart in android

view story

http://androidforums.com – I have developed one android application. Here i have to add the maximum quantity is 5 to cart. But i have wrote the condition is correct for these requirement. I have to run the application means more product is added to cart.please help me. please check my code and give me solution for these. whats wrong in my code.please explain me. public class SingleMenuItem extends Activity { static final String KEY_PNAME = "productName"; static final String KEY_PRICE = "productPrice"; static final String KEY_TOTAL = "total"; static final String KEY_QTY = "qty&quo (General)