Android Method Length

To the extent that it is feasible, methods should be kept small and focused. It is, however, recognized that long methods are sometimes appropriate, so no hard limit is placed on method length. If a method exceeds 40 lines or so, think about whether it can be broken up without harming the structure of the program.

Source: http://source.android.com/source/code-style.html

Posted in Android, Tips and Tricks Tagged with: , ,