1

我编写了我的第一个 Android 动态壁纸并将其发布在 Google Play 上。我首先在我的平板电脑(Manta MID001 和 Android 2.2)上通过从 apk 文件安装它来测试它,它工作正常。我从来没有机会在这个设备上调试,因为 USB 端口坏了​​。

发布已经一个多星期了,但我在使用平板电脑时仍然无法在 Google Play 中看到壁纸。我只能从我的电脑上找到它,它可以在这里找到。在找到我的其他应用并选择“来自此开发者的更多”时,我什至看不到壁纸。什么可能是错的?

这是我的 AndroidManifest.xml 文件:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="pl.bartoszwesolowski.ringlivewallpaperdemo"
    android:versionCode="2"
    android:versionName="1.1" >

    <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="7" />
    <uses-feature android:name="android.software.live_wallpaper" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name">

        <service
            android:label="@string/app_name"
            android:name=".service.RingWallpaperService"
            android:permission="android.permission.BIND_WALLPAPER">
            <intent-filter>
                <action android:name="android.service.wallpaper.WallpaperService" />
            </intent-filter>
            <meta-data android:name="android.service.wallpaper" android:resource="@layout/wallpaper" />
        </service>

    </application>

</manifest>

我确信我的平板电脑支持动态壁纸,因为我可以下载并使用其中的几个。我什至运行这个特殊的壁纸,从一个 apk 文件安装它,我没有遇到任何问题。

我阅读了 StackOverflow 上的其他帖子,建议在清单文件中添加以下几行:

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

我不认为它们是必要的,因为根据Google Play 文档上的过滤器,这些选项默认为真:

对于将 android:minSdkVersion 或 android:targetSdkVersion 设置为 3 或更低的应用程序,元素本身是未定义的,并且没有可用的属性。在这种情况下,Google Play 假定应用程序是为正常尺寸的屏幕设计的,并将应用程序显示给具有正常或更大屏幕的设备。

当 android:minSdkVersion 或 android:targetSdkVersion 设置为 4 或更高时,所有属性的默认值为“true”。这样,应用程序被认为默认支持所有屏幕尺寸。

4

0 回答 0