Added support for Android FragmentActivity