title: Java - Android - Split Activity/Class into multiple files for better organization (solution)
body: <p>I'm not PRO in JAVA , but I found myself of getting crazy with Android activities getting too large.<br>
  After a few pages of code length I found myself of permanently scrolling back and forth!<br>
  Not only OnClickhandlers can grow huge, just a lot of code tends to sum up in a bigger activity.<br>
  Fragments were no solution for me.<br>
  In general Java does not allow to split up a class into several files so a hack is needed.  </p>
  
  <p>I browsed through a lot of stackoverflow threads regarding that, not one had a solution.<br>
  I solved it anyway, maybe this helps others.  </p>
  
  <p>This is a bit Android focused as I got anoyed by my huge onClick Handlers for all the menus and buttons but I guess it will work for other general Java problems as well the same way.</p>