竖屏的 a Activity 跳转到横屏的 b Activity 然后退回到竖屏的 a Activity 出下面错误
Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
解决办法:
就是把a Activity在 androidManifest.xml的配置 修改成即可!
如下:
<activity android:name="com.example.a"
android:screenOrientation="portrait"//
>
</activity>
就是把a activity 固定成竖屏的
发解决