在模仿一个天气预报的widget时候,用到了IntentFilter,感觉在manifest.xml注册的receiver跟用代码写registerReceiver()的效果应该是相同的,于是想证明一下,就写了如下一段程序: MainActivity: public class MainActivity extends Activity { public static final int UPDATE = 000; TextView xml; TextView java; int count =