private void goToShowMsg(ShowMessageFromWX.Req showReq) { WXMediaMessage wxMsg = showReq.Message; WXAppExtendObject obj = (WXAppExtendObject)wxMsg.MyMediaObject; // 组织一个待显示的消息内容 StringBuffer msg = new StringBuffer(); msg.Append("description: "); msg.Append(wxMsg.Description); msg.Append("\n"); msg.Append("extInfo: "); msg.Append(obj.ExtInfo); msg.Append("\n"); msg.Append("filePath: "); msg.Append(obj.FilePath); Intent intent = new Intent(this, typeof(ShowFromWXActivity)); intent.PutExtra(Configuration.ShowMsgActivity.STitle, wxMsg.Title); intent.PutExtra(Configuration.ShowMsgActivity.SMessage, msg.ToString()); //intent.PutExtra(Configuration.ShowMsgActivity.BAThumbData, wxMsg.ThumbData); StartActivity(intent); Finish(); }
/* * 可暂忽略的函数 * 微信请求应用显示特定的消息数据(数据在request.Message中) */ public override void On_ShowMessageFromWX_Request(ShowMessageFromWX.Req request) { }