내 앱은 핸드셋 전용으로 설계되었지만 앱을 시장에 업로드하려고하면 내 앱이 태블릿 (xlarge)에도 표시됩니다. 의도적으로 태블릿에서 액세스 할 경우 내 앱이 시장에 표시되는 것을 원하지 않습니다.Android 앱을 핸드셋에서만 사용하려면 어떻게해야합니까?
나는 minSdkVersion 및 targetVersion 지원 및 요소를 가지고 놀아 보았습니다.
또한
<manifest ... >
<compatible-screens>
<!-- all small size 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" />
<!-- all normal size screens -->
<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>
...
<application ... >
...
<application>
</manifest>
사용하여 시도하지만 오류 얻을 :
Multiple annotations found at this line:
- error: No resource identifier found for attribute 'screenDensity' in package
'android'
- error: No resource identifier found for attribute 'screenSize' in package
'android'
내가 무엇을 놓치고를?
태블릿에는 전화 서비스가 없다는 것을 고려하면이 필터를 사용하면 도움이됩니다. 그러나 앱이 작동하려면 하드웨어 구성이 필요하지 않습니다. 내 앱은 핸드셋 (소형부터 대형까지) 용으로 특별히 제작되었으며, 앱이 타블렛에서 예상대로 작동하지 않기 때문에 부정적인 리뷰를 원하지 않습니다. – sku
게시 한 XML이 여기에서 잘 작동합니다. 프로젝트 구축 타겟은 무엇입니까? – user999717
10 ...이 (가) 9시에 소개되었습니다 ... –
sku