2012-01-09 3 views
2

마켓 플레이스에 내 Android 애플리케이션을 게시하려고 합니다만, 정상적인 화면 크기와 고밀도로 기기를 디자인하기로했습니다 (HTC Desire 예).게시 앱 - Android 마켓의 기기로 제한

이 응용 프로그램은 HTC Desire와 동일한 사양을 가진 장치 외에 다른 장치에서 제대로 보이지 않습니다.

이러한 사양에 맞게 시장에서 응용 프로그램을 어떻게 제한 할 수 있을지 궁금합니다. 응용 프로그램은 안드로이드 3.2 이상에서 경우

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
     package="" 
     android:versionCode="1" 
     android:versionName="1.0" android:installLocation="auto"> 

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

<uses-permission android:name="android.permission.CAMERA" /> 
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
    <uses-sdk android:minSdkVersion="8" /> 

    <application android:icon="@drawable/icon" android:label="@string/app_name" android:screenOrientation="landscape"> 
     <activity android:name=".PhonegapScreenshotPluginActivity" 
        android:label="@string/app_name" 
        android:configChanges="orientation|keyboardHidden" android:screenOrientation="landscape"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 
       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 

    </application> 
</manifest> 

답변

2

의 146 페이지를 참조하십시오. 문서 페이지에는 link이 있습니다. Manifest에서는 다음과 같이 표시됩니다.

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

희망이 있습니다.

+0

그래, 이거 야. SDK 버전을 9까지 올려야했지만 가치가있었습니다. – jcrowson

6

, 당신은 사용할 수 있습니다

다른
    <supports-screens 
        android:smallScreens="false" 
        android:normalScreens="true" 
        android:largeScreens="false" 
        android:xlargeScreens= "false" 
        android:anyDensity="true" 
        android:requiresSmallestWidthDp="480" 
        android:compatibleWidthLimitDp="480" 
        android:largestWidthLimitDp="480"/> 

당신이 사용할 수 있습니다

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

는 다음 URL에서보세요

:

http://developer.android.com/guide/topics/manifest/supports-screens-element.html

우리는 정상적인 화면을 말할 때

은 무엇을 의미 하는가 : 63,210

http://developer.android.com/guide/practices/screens_support.html

또한 나는 텍스트 다음 당신과 함께 공유하고 싶습니다?

We tell Android that we only support devices that fall into the normal screens class. Note that this doesn’t necessarily imply that our application isn’t installable anymore on other devices. It doesn’t even mean that it’s doomed to break on them, but it has other implications. We didn’t mention actual sizes in pixels or densities in dpi.

자세한 내용은, 현재 상황에서 더 유용 할 수있는 매니페스트 요소도있다 http://www.manning.com/collins/AiP_sample_ch04.pdf

+0

답장을 보내 주셔서 감사합니다. 내 매니페스트 파일에서 사용할 수있는 옵션은 다음과 같습니다. http://i.imgur.com/EzyX1.png. 이 올바른지? – jcrowson

+0

네, 그것도 똑같습니다. –

+0

좋아, 분명히 정상적인 크기, 고밀도 장치로 제한되지 않습니다. 내가 어디로 잘못 가고 있니? – jcrowson

관련 문제