Dynamic TabHost Crashing in higher version of Android but working fine with 2.3
问题 I'm building an App which will have a HostTab and will contain two child tabs. I'm not using the .xml for the layout, instead I'm declaring it in the run-time. It is not giving any error during build and was running perfectly in Android 2.3, but in Newer version of Android it is crashing on start. Can anyone help me out in resolving the problem. I'm very new to Android Studio and don't know lot about it.Screen shot when the App is Crashing My Main Activity (TabExpl.jav) Code is as below: