Prosecutors said Dong Liang met the victim through Tencent's instant messaging tool Weixin in November. After chatting for some time, the pair decided to meet each other at a subway station Nov 15.
Dong said they had some beer and went to a hotel after the woman agreed to have sex with him.
The next day, Dong woke up and told the sleeping woman he had to go to work. Before he left, Dong quietly took the woman's iPhone that was beside the pillow, a court heard.
The woman reported the theft to the police. Two hours later, Dong was caught at his home.
J. Jayalalithaa passes away: Her life in pictures
Photos: Shah Rukh Khan, Deepika Padukone, Alia Bhatt at an awards show
Photos: Big B, Iulia Vantur at Himesh Reshammiya's album launch
Photos: Aamir Khan with 'Dangal' actresses at fashion show
Spotted: Twinkle Khanna, Shriya Saran at an event in Mumbai