The traditional way to create views (or windows) in Android is to create a XML layout file.

My way?

public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        TextView ApplicationMainWindowView = new TextView(this);

// Fills TextView with data...

         setContentView(ApplicationMainWindowView);

}

// Note, there's no XML layout file required :-)