在Android上实现消息Accesss档案(水槽边)?水槽、消息、档案、Android

2023-09-07 04:02:38 作者:Relieved(释然)

我有意让Android的支持消息访问配置文件(在水槽边),可以通过蓝牙从iPhone获得传入的消息,同样与智能手表做

I'm intent to making Android support Message Access Profile (on Sink side) that can get incoming message from iPhone via bluetooth, same with Smart Watch do

但我不知道如何实现它在Android上。

But i don't know how to implement it on Android.

推荐答案

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(规范)两部分组成MAS(消息访问服务)和MNS(消息通知服务)。根据你想要做什么,你可能需要impelment两者。正如你在,你想从手机recive有关新的消息和得到它,那么你就需要两个部分通知的问题说。如果你只是想从手机阅读消息,那么你只需要实现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.