2012-01-09 17 views
2

Androidアプリを市場に公開しようとしていますが、通常の画面サイズで高密度の端末向けにデザインすることにしました(HTC Desireの例)。公開アプリ - Androidマーケットの端末による制限

このアプリケーションは、HTC Desireと同じ仕様のものを除いて、他のどのデバイスでも正しく表示されません。

私はこれらの仕様に適合するように市場でアプリケーションをどのように制限できるのだろうかと思っていましたか?

<?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があります。マニフェストでは、次のようになります。

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

希望します。

+0

これはそれです。私はSDKバージョンを9にアップしなければならなかったが、それは価値があった。 – jcrowson

6

アプリケーションは、Android 3.2用で、より高い場合は、あなたが使用することができます。

あなたが使用できる他
    <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

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

Ok、明らかに、通常のサイズ、高密度デバイスに限定されません。どこが間違っていますか? – jcrowson

関連する問題