Added a method to create an android window.