Whats the best practice for the contents of an activities onCreate method?
<p>I'm fairly new to Android development and I've realised that my activities onCreate methods are growing significantly.</p>

<p>For example I can be setting up the navigation drawer, initialising the activities buttons, textviews and ads, setting up ad requests and setting all the button click listeners.</p>

<p>So my question is, is it considered acceptable to have an onCreate method that's 50+ lines long? Or should I separate all the individual actions (usually only 4 or 5 lines each) into individual methods? </p>

<p>(I was always previously taught to keep methods as short as possible only performing one thing, though the examples and tutorials I've seen all say to throw stuff into the onCreate method)</p>