What method should I call to know if an Activity has its contentView (once the method setContentView() has been called)?
this.getWindow().getDecorView().findViewById(android.R.id.content)
or
this.findViewById(android.R.id.content)
this.findViewById(android.R.id.content).getRootView()
You can also override onContentChanged() which is among others fired when setContentView() has been called.
onContentChanged()
setContentView()