In 1907 Hitler left Linz to live and study fine art in Vienna, financed by orphan's benefits and support from his mother. He applied for admission to the Academy of Fine Arts Vienna but was rejected twice. The director explained his drawings showed "unfitness for painting" and suggested Hitler was better suited to studying architecture. Though this was an interest of his, he lacked the academic credentials as he had not finished secondary school. On 21 December 1907, his mother died of breast cancer at the age of 47. In 1909 Hitler ran out of money and was forced to live a bohemian life in homeless shelters and Meldemannstrasse dormitory. He earned money as a casual labourer and by painting and selling watercolours of Vienna's sights.  During his time in Vienna he pursued a growing passion for two interests, architecture and music, attending ten performances of Lohengrin, his favorite Wagner opera.  It was here that Hitler first became exposed to racist rhetoric. Populists such as mayor Karl Lueger exploited the climate of virulent anti-Semitism and occasionally espoused German nationalist notions for political effect. German nationalism had a particularly widespread following in the Mariahilf district, where Hitler lived. Georg Ritter von Schonerer became a major influence on Hitler. He also developed an admiration for Martin Luther. Hitler read local newspapers such as Deutsches Volksblatt that fanned prejudice and played on Christian fears of being swamped by an influx of Eastern European Jews. He read newspapers and pamphlets that published the thoughts of philosophers and theoreticians such as Houston Stewart Chamberlain, Charles Darwin, Friedrich Nietzsche, Gustave Le Bon and Arthur Schopenhauer.  The origin and development of Hitler's anti-Semitism remains a matter of debate. His friend, August Kubizek, claimed that Hitler was a "confirmed anti-Semite" before he left Linz. However, historian Brigitte Hamann describes Kubizek's claim as "problematical". While Hitler states in Mein Kampf that he first became an anti-Semite in Vienna, Reinhold Hanisch, who helped him sell his paintings, disagrees. Hitler had dealings with Jews while living in Vienna. Historian Richard J. Evans states that "historians now generally agree that his notorious, murderous anti-Semitism emerged well after Germany's defeat [in World War I], as a product of the paranoid "stab-in-the-back" explanation for the catastrophe".  Hitler received the final part of his father's estate in May 1913 and moved to Munich, Germany. Hitler was called up for conscription into the Austro-Hungarian Army, so he journeyed to Salzburg on 5 February 1914 for medical assessment. After he was deemed by the medical examiners as unfit for service, he returned to Munich. Hitler later claimed that he did not wish to serve the Habsburg Empire because of the mixture of races in its army and his belief that the collapse of Austria-Hungary was imminent.

Answer this question "What did he do in the army" by extracting the answer from the text above.
After he was deemed by the medical examiners as unfit for service, he returned to Munich.