Implement Message Access Profile (Sink side) on Android?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-14 03:44:39

问题


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

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


回答1:


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).

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.



来源:https://stackoverflow.com/questions/15377247/implement-message-access-profile-sink-side-on-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!