我开发了一个应用程序,可以在手机上显示人像,在平板电脑上显示风景。奇怪的是,当我在play store上搜索时,这个应用程序没有显示在tab上。
上面说是为手机设计的…我已经把所有的细节都写在舱单上了。还有什么可能是错误的:

<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
    <uses-permission android:name="android.permission.CALL_PHONE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

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

我宣布这样的活动:
    <activity
            android:name="com.pk.imageViewer.MainActivity"
            android:theme="@style/Theme.imv"
            android:screenOrientation="nosensor" >
    </activity>

然后在layout文件夹中有mainactivity.xml,我还在mainactivity.xml中为平板电脑创建了另一个名为layout-w600dp-land的文件夹。

最佳答案

你可以通过做

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

    <uses-feature
        android:name="android.hardware.telephony"
        android:required="false" />

    <uses-feature
        android:name="android.hardware.location"
        android:required="false" />
    <uses-feature
        android:name="android.hardware.location.network"
        android:required="false" />
    <uses-feature
        android:name="android.hardware.location.gps"
        android:required="false" />

10-07 19:25
查看更多