Foxit PDF SDK for Android的AndroidManifest.xml中,Activity缺少configChanges配置。示例代码如下:
<activity
android:name=".MainActivity" android:configChanges="keyboardHidden|orientation|screenSize|locale|layoutDirection|screenLayout|uiMode|smallestScreenSize"
android:exported="true"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustPan">
<layout android:gravity="center"
android:minWidth="520dp"
android:minHeight="700dp" />
<intent-filter> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter> <intent-filter tools:ignore="AppLinkUrlError">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/pdf" />
</intent-filter>
</activity>