2011-08-31 3 views
3
<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
     package="com.helloworld" 
     android:versionCode="1" 
     android:versionName="1.0"> 
    <uses-sdk android:minSdkVersion="4"/> 
    <supports-screens android:smallScreens="true" android:normalScreens="false" android:largeScreens="false" android:xlargeScreens="false"/> 
    <application android:label="@string/app_name" android:icon="@drawable/icon"> 
     <activity android:name="HelloWorld" 
        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> 

AndroidManifest 마켓 필터 설정으로 놀고 있었는데 이상한 것으로 나타났습니다.안드로이드 마켓 필터; 화면 크기 제한이 단 하나의 유형으로 제한됩니다.

minSdkVersion을 4로 설정하고 다른 모든 크기가 false 인 경우 smallScreens 만 true로 테스트 응용 프로그램을 업로드했습니다. 작은 화면 지원 만 명시 적으로 선언했지만 포털에서 지원하는 응용 프로그램이 화면이 작아서 xlarge 인 것으로 나타났습니다.

개발자 가이드에서 화면 크기 지원을 한 가지 유형으로 제한 할 수 없다는 언급이 없습니다. 내 명단에 뭔가 빠져 있니?

답변

1

작은 기기 만 앱을 사용하도록 제한 할 수 있습니다. 다른 모든 화면 크기는 애플리케이션이 매니페스트에서 false로 설정되어 있어도 사용할 수 있습니다. 차이점은 화면 호환성 모드를 사용하여 기기가 앱을 확장하는 방법입니다.

참조 : screen-compatibility-mode

관련 문제