The first step is to rest the arm and shoulder, and avoid overuse and activities that irritate the arm. Icing and nonsteroidal anti-inflammatory drugs such as ibuprofen can help reduce tenderness and swelling (inflammation). Your doctor can also recommend stretching and strengthening exercises to build muscle endurance and restore range of motion. Then you can slowly return to activities that involve raising your arm over your head.
If the pain is caused by the shoulder joint not being stable or by pressure on the tendon from the shoulder bones, your doctor may recommend arthroscopic surgery. Using fiber optic technology and miniature instruments inserted through a small incision, the surgeon can examine the shoulder joint and anchor the tendon properly.
After surgery, your doctor will prescribe a physical therapy program that includes stretching and strengthening. Early movement is important, but you should wait for your doctor's approval before doing any heavy lifting or returning to sports.