new AlertDialog.Builder(this)
.setMessage(mymessage)
.setTitle(title)
.setCancelable(true)
.setNeutralButton(android.R.string.cancel,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton){}
})
.show();
Hi, could someone explain what this java language feature is called, to be able to call methods without directly specifying the object before the '.' ?
I would like to read more about how to use this...
and does it only work with "new" or can I use existing objects with this syntax?