From the link you provided:
However, this is a bad idea on Android. Virtual method calls are expensive, much more so than instance field lookups. It's reasonable to follow common object-oriented programming practices and have getters and setters in the public interface, but within a class you should always access fields directly.
Basically what it means is that you can have getters and setters, but when you want to access a class' own fields, access it directly. In other words, you should do this:
class Foo {
private int bar;
public int getBar() { return bar; }
public void setBar(int value) { bar = value; }
public someOtherMethod() {
// here if you want to access bar, do:
bar = 10;
System.out.println(bar);
// instead of:
// setBar(10);
// System.out.println(getBar());
}
}
// but outside of this class, you should use getBar and setBar