Added Android support for system dialog detection.