Implement close and open SubWindow in Android.