【发布时间】:2014-05-16 16:53:30
【问题描述】:
这是我的清单文件,有人可以告诉我哪里出错了吗?错误消息是“无法加载小部件”。我用谷歌搜索了错误,人们建议检查布局类和小部件类。我使用了一个按钮,但仍然出现错误。请帮帮我。
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bmsce.appointext"
android:versionCode="1"
android:versionName="1.0" android:installLocation="auto">
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
<application
android:allowBackup="true"
android:icon="@drawable/logo_appointext"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<!-- widget starts here -->
<activity
android:name="com.appointext.widget.Widget"
android:label="@string/app_name">
<intent-filter>
<!-- <action
android:name="android.intent.action.MAIN"/> -->
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver
android:name="com.appointext.widget.Widget"
android:label="Appointext widget">
<intent-filter>
<action
android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget1_info" />
</receiver>
</application>
</manifest>
【问题讨论】:
标签: xml android-widget android-manifest