本帖最后由 xianqiang1 于 2011-11-28 17:22:44 编辑

解决方案 »

  1.   

    唉!没人气..不过我也决解了,吃了饭,来做了一下,好像是清单文件AndroidManifest.xml的错误,现修改如下:
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.widget.app"
        android:versionCode="1"
        android:versionName="1.0" >    <uses-sdk android:minSdkVersion="8" />    <application
            android:icon="@drawable/test"
            android:label="@string/app_name" >
            <!-- 声明一个Widget组件 -->
            <receiver android:name=".WidgetDemo" 
                android:label="First Widget"
                android:icon="@drawable/test" >
                <intent-filter >
                    <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
                </intent-filter>            <meta-data
                    android:name="android.appwidget.provider"
                    android:resource="@xml/appwidget_info" />
            </receiver>
        </application></manifest>
    靠天靠地,不如靠自己!!为自己“自地摸地”学android加油!
    效果图:
    总结:即使英语不行,也要强迫自己啃Google的API,因为权威一些....
      

  2.   

    还没有写过widget呢.不过看楼主的代码,确实intent写成initent了..
      

  3.   

    唉!是呀...English不行呀!以后改进......谢谢你们!!