且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Android上实现消息访问配置文件(接收器侧)?

更新时间:2022-12-06 12:42:39

MAP(消息访问个人资料)使用 OBEX (阅读规范)并实施OBEX.构建好的东西是OBEX包解析器/构建器.还有更多使用OBEX作为基础的配置文件,例如OPP(对象推送配置文件 )和PBAP(电话簿访问配置文件).

MAP (Message Access Profile) uses the OBEX (Object Exchange) profile to talk over. So begin with understand (read the specification) and implement OBEX. A good thing to build is a OBEX package parser/builder. The are more profiles that using OBEX as a base, example OPP (Object Push Profile) and PBAP (Phonebook Book Access Profile).

拥有解析器/构建器时,可以在其上实现MAP. MAP(规范)有两个部分MAS(消息访问服务)和MNS(消息通知服务).根据您要执行的操作,可能需要同时执行这两项.正如您在问题中所说的那样,您想从电话接收有关新消息的通知并获取它,那么您需要这两个部分.如果您只想阅读电话中的消息,则只需实现MAS部分.

When you hava a parser/builder you implement MAP on it. MAP (specification) have two parts MAS (Message Access service) and MNS (Message Notification service). Depending of what you want to do you may need to impelment both. As you say in the question that you want to recive notifications from the phone about new message and the get it, then you need both parts. If you only want to read message from the phone then you only need to implement the MAS part.