For example, one workout you may want to do lateral lunges with mini-band ankle walks. Another workout you may choose rotational step-ups with the 4-way cable hip exercise. The activation, mobility, and flexibility exercises can be done more frequently and not necessarily as part of a stand-alone workout. There's no one-right way to incorporate these exercises, so don't be afraid to experiment.
The symptoms can also be classified by duration as acute, sub-chronic (also known as sub-acute), or chronic. The specific duration required to meet each of these is not universally agreed upon, but generally pain lasting less than six weeks is classified as acute, pain lasting six to twelve weeks is sub-chronic, and more than twelve weeks is chronic.[3] Management and prognosis may change based on the duration of symptoms.
In addition to these exercises, there are simple things you can do every day to help reduce your risk of hip flexor pain.  If you sit at a desk for long periods of time, try to get up and move around every hour or so.  Warm up properly before any physical activity, and stretch regularly at the end of each workout.  Your hips will thank you for it! 
The treatment of hip pain depends on the precise cause of the pain. Treatments can include rest, non-weight-bearing, cold application, and anti-inflammatory medications. For local inflammation, sometimes injection of cortisone medication (steroids) is used to quiet the inflammation. If infection is present, antibiotics are used. Fractures can require treatment with surgical repairs, including pinning, plates and screws, and total joint replacement. For severe arthritis, total joint replacement is performed when possible.
In both younger and older patients, vertebral fractures take weeks to heal with rest and pain relievers. Compression fractures of vertebrae associated with osteoporosis can also be treated with a procedure called vertebroplasty or kyphoplasty, which can help to reduce pain. In this procedure, a balloon is inflated in the compressed vertebra, often returning some of its lost height. Subsequently, a "cement" (methymethacrylate) is injected into the balloon and remains to retain the structure and height of the body of the vertebra. Pain is relieved as the height of the collapsed vertebra is restored.