How to write less code
MenuItemActivity.intent(this)
.place(currentPlace)
.item(selectedItem)
.start();
public final class LoginActivity extends Activity {
@MagicViews
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.login_activity);
usernameField.setText(prefs.getUsername());
}
private void onSignInButtonClick() {
String username = usernameField.getText().toString();
String password = passwordField.getText().toString();
// make API call
}
}
and more coding...
Now code only what is worth coding!