Implement openModal and openWindow with and without animation in Android.