在主题apk中添加android元数据标签并读取值

时间:2013-07-31 14:19:40

标签: android themes

在主题apk中添加android元数据标签并读取值, 我看到this和应用程序apk它工作正常,但我有主题apk它没有application标签,我尝试在manifest标签下添加元数据,但它不起作用。有人可以帮我添加清单中的元数据或自定义标签,并使用packagemanager在android应用程序中检索其值

我的主题apk的清单如下

<?xml version="1.0" encoding="utf-8"?>
  <manifest android:hasCode="false" android:versionCode="2" android:versionName="1.0" android:installLocation="internalOnly" package="com.template.theme.y"
  xmlns:android="http://schemas.android.com/apk/res/android" xmlns:pluto="http://www.w3.org/2001/pluto.html">
    <theme pluto:wallpaperImage="@drawable/wallpaper" pluto:ringtoneFileName="media/audio/ringtones/Standard.mp3" pluto:preview="@drawable/preview" pluto:styleName="@string/style_appearance_name" pluto:ringtoneName="Standard" pluto:name="@string/theme_name" pluto:author="@string/author" pluto:notificationRingtoneName="Subtle" pluto:themeId="Templatebread" pluto:notificationRingtoneFileName="media/audio/notifications/Subtle.mp3" pluto:styleId="@style/Templatebread" pluto:copyright="@string/copyright">
        <meta-data android:name="themeEngineVersion" android:value="101" />
    </theme>
</manifest>

0 个答案:

没有答案