Is it possible to create an activity without setContentView(R.layout.main) xml file?
Question is not correct
Yes, it is possible. You can create resources with code also, without having your xml files.
For eg: Below code will work with out setting xml file as the layout for your activity.
TextView tv = new TextView(this);
Back To Top