This is usually associated with rotator cuff tears.
The biceps, the muscle is in the front of your upper arm, is kept in position by a pulley system. This can get torn with an injury which then causes the biceps tendon to become unstable. This in turn can cause the rotator cuff to tear.
In such cases treatment is a rotator cuff repair (Rotator Cuff Tears) and a biceps tenodesis or tenotomy (Biceps Tendonitis).