Any of those help When you compile your code to build your app, it all gets transformed into bytecode, which is the representation that the Android device understands how to execute. Only information that's needed for the bytecode is left intact at this point. That means that any blank lines, and even any comments, are stripped out of your Java source code.
seems to work fine onCreateOptionsMenu usually gets called when the user presses the Menu button. In the case of an action bar presence though, the method will actually get called before onCreate finishes. As to what code does, it inflates the phone_start_screen.xml (in your example) from the /res/menu folder.
Scala source code metrics tool (lines of code, lines of comments and so on)
wish of those help I use cloc and it works just fine. It understands pretty much any language or script out there, it's easy to install - comes as a package on Linux, and easy to use. It can also output to multiple formats like csv, xml, yaml, sql, etc. Here is an example output of one of my projects: