Skip to content
xxv edited this page Mar 6, 2012 · 3 revisions

The Locast Android client uses a very similar style to the Android codebase style.

In addition to that style, the actual code should follow the following guides:

  • Indentation should use tabs (this is the current style out of happenstance, but we should switch to the spaces style in the android source. It's better to be internally consistent now and switch all at once than slowly transitioning)
  • The code should use Unix endlines
  • Lines should not end in trailing whitespace, this includes empty lines
  • Unnecessary imports should be removed

In general, Eclipse can handle much of this style for you. We recommend turning on the autoformat feature so that code remains in the correct style.

The built-in code cleanup tool should be run before committing. If possible, clean up code and make the clean up action a separate commit so that the functional changes are easier to pick out.

Clone this wiki locally