私のAndroidアプリには2つのアクティビティがあります。クリックすると、1つのアクティビティから別のアクティビティに移動できます。しかし、私が景観モードからprotraitモードへ、あるいはその逆へと変化しているとき、私の活動は私が期待していなかったものに自動的に変わりつつあります。ポートレートモードまたはランドスケープモードに変更されても、同じアクティビティを継続することが期待されます。だから何が問題だろうか?アクティビティの自動変更:Androidのランドスケープモードとポットリットモード
更新
<application
android:allowBackup="true"
android:icon="@drawable/icon1"
android:label="@string/app_name"
android:logo="@drawable/icon2"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".second_main">
</activity><!-- ATTENTION: This was auto-generated to add Google Play services to your project for
App Indexing. See https://g.co/AppIndexing/AndroidStudio for more information. -->
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
</application>
によってトリガoccuringからのアップデートは、あなたのコードを表示することができないように?通常、景色や鉢植えを変更しても活動は変わりません。 – Joshua
マニフェストの追加 – Zoe
マニフェストを追加しました。 @ Polarbear0106 – Sanik