nm.notify(10, n); }问题出现的代码就是:PendingIntent pi = PendingIntent.getActivity(context, 300, readMsgIntent, 0);需要将0改成PendingIntent.FLAG_UPDATE_CURRENT即改成:PendingIntent pi = PendingIntent.getActivity(context, 300, readMsgIntent, PendingIntent.FLAG_UPDATE_CURRENT); //用户点击后开启readMsgIntent指定的activity根据API对FLAG_UPDATE_CURRENT的解释如下:Flag for use with getActivity, getBroadcast, andgetService: if the described PendingIntent already exists, then keep it but its replace its extra data with what is in this new Intent. This can be used if you are creating intents where only the extras change, and don"t care that any entities that received your previous PendingIntent will be able to launch it with your new extras even if they are not explicitly given to it.更多Android相关信息见Android 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=11