A teenage gunman who killed 15 people in a German school and nearby had given an internet warning before he went on a shooting spree, German officials say.
They say Tim Kretschmer, aged 17, gave the warning in a chatroom before the killings in Winnenden on Wednesday.
Krestchmer killed 11 people in the school. He eventually shot himself after a shoot-out with police in the nearby town of Wendlingen, reported BBC.
Flags are flying at half-mast across Germany for those killed in the attack.
At a news conference, Baden-Wurttemberg's Interior Minister Heribert Rech said the gunman had warned about his attack in a chatroom on a German internet portal.
He said the message read: "I've had enough. I'm fed up with this horrible life. Nobody knows what I'm capable of. I will go to school tomorrow for the grilling. Possibly I will get away with it.
"You will hear about me tomorrow. Make note of the name of the place: Winnenden."