本文介绍了在Android上实现消息访问配置文件(接收器侧)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算让Android支持消息访问配置文件(在Sink端),该消息访问配置文件可以通过蓝牙从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. 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.

这篇关于在Android上实现消息访问配置文件(接收器侧)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 03:05