我想在我的应用程序中集成 Glympse API,其中我的移动应用程序有两个用户,分别使用应用程序,如果一个人想查看另一个人的实时位置,并且他们都在不同的模块上工作,但相同的应用程序.
您的 Glympse API 是否可行?
此外,在尝试使用以下代码发送 Glympse 票证时,我在从 GlympseLiteWrapper 获取实例时得到空指针
**/*Send a Glympse*/**
GTicketLite ticket = LiteFactory.createTicket(3600000, "Going home!", null);
// Set flags that adjust the presentation of the Glympse Send Wizard.
// These can enable/disable fields in the wizard screen.
final int WIZARD_FLAGS
= LC.SEND_WIZARD_INVITES_EDITABLE
| LC.SEND_WIZARD_MESSAGE_EDITABLE
| LC.SEND_WIZARD_DESTINATION_EDITABLE
| LC.SEND_WIZARD_TIME_EDITABLE;
// Launches the wizard which will send the Glympse
GGlympseLite glympse = GlympseLiteWrapper.instance().getGlympse();
glympse.sendTicket(ticket, WIZARD_FLAGS);