2014-07-14 2 views
1

내 앱을 스마트 폰에서만 실행하고 밀도는 중요하지 않길 원합니다. 그래서 몇 가지 질문이 있습니다. <compatible-screens> 또는 <supports-screens>을 사용해야합니까? 그 차이점은 무엇입니까? Google Play에서 앱 목록 필터링에 사용하는 태그는 무엇인가요? 올바른 방법입니까?스마트 폰 기기 만 지원

<supports-screens 
    android:anyDensity="true" 
    android:largestWidthLimitDp="500" 
    android:normalScreens="true" 
    android:smallScreens="true" 
    android:largeScreens="false" 
    android:xlargeScreens="false" /> 

<compatible-screens> 
    <screen android:screenSize="small" android:screenDensity="ldpi"/> 
    <screen android:screenSize="small" android:screenDensity="mdpi"/> 
    <screen android:screenSize="small" android:screenDensity="hdpi"/> 
    <screen android:screenSize="small" android:screenDensity="xhdpi"/> 

    <screen android:screenSize="normal" android:screenDensity="ldpi"/> 
    <screen android:screenSize="normal" android:screenDensity="mdpi"/> 
    <screen android:screenSize="normal" android:screenDensity="hdpi"/> 
    <screen android:screenSize="normal" android:screenDensity="xhdpi"/> 
</compatible-screens> 

나는이 논점에 대해 다른 대답을했지만 다른 대답을 읽었습니다.

+0

이 링크보기 http://stackoverflow.com/questions/21850115/difference-between-supports-screens-and-compatible-screens-on-android – Madhu

+0

전체 안드로이드 매니페스트 파일을 게시하십시오. 이러한 매개 변수 만 장치 필터링에 사용되지 않습니다. 권한/사용 필터링 기능 태그도 제공됩니다. –

답변

1

<compatible-screens> 또는 <supports-screens>을 사용해야합니까?

<compatible-screens>의 경우는 the documentation입니다.

차이점은 무엇입니까?

사용 예로는 <compatible-screens>이 작동하고 <support-screens>은 그렇지 않습니다. <supports-screens>작은 크기의 필터 일 뿐이며 더 큰 크기는 지원하지 않습니다.

Google Play에서 앱 목록을 필터링하는 데 사용하는 태그는 무엇입니까?

일반적으로 둘 다. 유스 케이스의 경우 <compatible-screens>을 통해 원하는 것을 표현할 수 있습니다.

올바른 방법입니까?

아니, 당신은 몇 밀도가 없기 때문에 ( tvdpi, xxhdpi, xxxhdpi). 그렇지 않으면 괜찮을 것입니다.

+0

감사합니다! 한 가지 더 궁금한 점은 5.2 인치 화면이 있고 내 앱이 대형 화면과 호환되지 않는다는 것을 감안할 때 내 앱이 Galaxy S5와 호환 될 것입니까? –

+0

@DanieleVitali : 삼성이 자신의 기기를 '-large'로 선언하면 해당 기기에서 사용할 수 없습니다. 나는 현재 S5를 사용하지 않아서 그들이 선택한 크기의 버켓을 말할 수 없다. – CommonsWare