my widget is full and ready to work, after i install it i can't find in the emulator widgets list .. although it's there when i search for it in the installed applications .. i think it's a problem in the manifest, here is the manifest :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="help.i.bored.bad" android:versionCode="1" android:versionName="1.2">
<uses-sdk android:minSdkVersion="8" />
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<application android:icon="@drawable/icon" android:label="@string/app_name">
<!-- Broadcast Receiver that will process AppWidget updates -->
<receiver android:name=".HitsWidget" android:label="@string/app_name">
<intent-filter>
<action android:name="help.i.bored.bad.HitsWidge.receiver1" />
<action android:name="help.i.bored.bad.HitsWidge.receiver2" />
&开发者_运维问答lt;action android:name="help.i.bored.bad.HitsWidge.receiver3" />
</intent-filter>
<meta-data android:name="android.appwidget.provider"
android:resource="@xml/hitswidge_provider" />
</receiver>
<Service android:name=".MediaService">
<intent-filter>
<action android:name="help.i.bored.bad.HitsWidge.receiver2" />
<action android:name="help.i.bored.bad.HitsWidge.receiver1" />
</intent-filter>
</Service>
<Activity android:name=".Stations" android:label="@string/app_name">
<intent-filter>
<action android:name="help.i.bored.bad.HitsWidge.receiver3" />
</intent-filter>
</Activity>
</application>
Your Broadcast receiver doesn't listen for the android.appwidget.action.APPWIDGET_UPDATE action. This is all covered in:
AppWidgets
精彩评论