使用notification之后,需要跳转的信息都存放到了Intent中,然而intent又封装成PendingIntent中,现在我想通过pendingIntent得到我封装进去的那个Intent,该怎么做?或者说我想通过PendingIntent得到它描述的那个Intent中的信息,有这个可能吗?
发送端:
Intent openintent = new Intent(this, ZXReaderAbout.class);
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, openintent, 0);//当点击消息时就会向系统发送openintent意图
notification.setLatestEventInfo(this, "11", "22", contentIntent);
接收段:
PendingIntent pIntent = notification.contentIntent;
也就是说从这个pIntent中怎么得到发送端封装进PendingIntent中的Intent对象!