i have tried with below code:
if (Constants.sItem_Detail.size() > 0)
{
Toast.makeText(getApplicationContext(), "Constants is Greater Than 0", Toast.LENGTH_LONG).show();
}
else {
Toast.makeText(getApplicationContext(), "Constants is Less Than < 0", Toast.LENGTH_LONG).show();
}
and getting Constants is Greater Than 0, and showing number of items in Cart is 1
but whenever i use this line in my code getting problem, is it the right way to get value from adapter to activity ?
Double.parseDouble(Constants.sItem_Detail.get(0).get(com.example.sample.CartAdapter.KEY_TOTAL));
if (Constants.sItem_Detail.size() > 0)
{
Toast.makeText(getApplicationContext(), "Constants is Greater Than 0", Toast.LENGTH_LONG).show();
}
else {
Toast.makeText(getApplicationContext(), "Constants is Less Than < 0", Toast.LENGTH_LONG).show();
}
and getting Constants is Greater Than 0, and showing number of items in Cart is 1
but whenever i use this line in my code getting problem, is it the right way to get value from adapter to activity ?
Double.parseDouble(Constants.sItem_Detail.get(0).get(com.example.sample.CartAdapter.KEY_TOTAL));