[Solved] android Class.forName throws exception
Interface OnSystemUiVisibilityChangeListener is nested in class View, so I believe you would have to do Class.forName(“android.view.View$OnSystemUiVisibilityChangeListener”); (note the ‘$’). References: http://developer.android.com/reference/android/view/View.html http://developer.android.com/reference/android/view/View.OnSystemUiVisibilityChangeListener.html solved android Class.forName throws exception