Intent intentCancle = new Intent();
intentCancle.setAction("a.a.a");
PendingIntent piCancle = PendingIntent.getBroadcast(ServiceTest.this, 0, intentCancle, 0);
n.deleteIntent = piCancle;
这样通过广播就可以去做自己想做的事情了
1.<?xml version="1.0" encoding="utf-8"?>
2.<ScrollView
3. android:layout_width="fill_parent"
4. android:layout_height="fill_parent"
5. xmlns:android="http://schemas.android.com/apk/res/android">
6.<LinearLayout
7. android:orientation="vertical"
8. android:layout_width="fill_parent"
9. android:layout_height="fill_parent"
10. >
11.<TextView android:id="@+id/updatetv"
12. android:layout_width="fill_parent"
13. android:layout_height="wrap_content"
14. />
15.</LinearLayout>
16.</ScrollView>