After struggling with opening and closing windows and sub windows in a non tab application I post some code examples for everybody who is interested in. The sample is about opening and closing a sub window in a main window from a option menuitem. It's compiled against 1.5 sdk!
see code here http://pastie.org/1362238
Have you seen the new Android OptionsMenu examples in the KitchenSink, namely, android_menu_1.js, android_menu_2.js, android_menu_3.js and map_view.js? These work fine for me under the latest 1.5.X continuous build, and include the close window option that you are attempting to create. Apparently, there will be a blog post published soon that describes in more detail how to use it.
You are welcome! :) If you are satisfied with the answer, it's good to mark it as best, as it makes it easier for others to find in future.
Think you can help? Login to answer this question!