I’m wondering if it is possible to create an Android app with only Java. No XML, no other things.
In Eclipse, when I create a new Android Project, the Manifest xml-file and the main layout xml-file is automatically generated. Can I delete those files and replace them by a Java-file?
For the layouts you have two options
Declare UI elements in XML. Android provides a straightforward XML vocabulary that corresponds to the View classes and subclasses, such as those for widgets and layouts.
Instantiate layout elements at runtime. Your application can create View and ViewGroup objects (and manipulate their properties) programmatically.
So for the first question – yes – you can delete xml layout files (if you must).
I think you cannot get rid of the manifest.xml..Quoting: