I wrote a program to increase volume and decrease, It is working randomly.Plz let me know the problem. i=50 default u.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            if(i<=100&&j<=100)
            mp.setVolume(i+=10,j+=10);
            else
                Toast.makeText(getApplicationContext(),"Max Obtained", 3);
        }
    });
    d.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            if(i>=0&&j>=0)
            mp.setVolume(i-=10,j-=10);
            Toast.makeText(getApplicationContext(),"Min Obtained", 3);
        }
    });
