在AndroidManifest.xml中寫上對應的聲明,就可以實作正常的跳轉了
<activity
android:name="com.aliyun.bmplugin.testmodel.Demo"
android:configChanges="orientation|screenSize"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity
android:name="com.aliyun.bmplugin.testmodel.Demo"
android:configChanges="orientation|screenSize"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>