Tôi đã thử this. Không thể tìm thấy configChanges trong tệp kê khai. Dù sao, làm thế nào để vô hiệu hóa xoay màn hình (để chế độ phong cảnh)?Làm cách nào để tắt chế độ xoay ngang?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.joericharduz.akita"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.joericharduz.akita.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
configChanges nằm trong thẻ hoạt động, hãy thử nó sẽ hoạt động –
@ kalyanpvs có lẽ tôi nên thêm nó? –