After a decade of watching newspapers and rival wire services shrink, The Associated Press, the 161-year-old news cooperative, is refitting itself to handle the 24-hour news cycle it helped create. “You have to adjust to the marketplace,” said Jim Kennedy, The A.P.’s vice president for strategic planning. “The new generation of consumers has completely different habits.” To feed those habits and...