对于你的第一个问题:说明你对pendingIntent不是很理解,他是这样的,他封装了一个intent 这个intent不会立即执行, 当满足一定条件的时候才执行intent,比如nocation 当用户点击了通知栏的nocation的时候才会跳转到 应用的某一个activity