0

When creating a glympse for the first time in an Activity, I call

start()

which is required before

sendTicket()

The glympse doesn't show up in notifications until after I hit send in the glympse wizard. Great, that works.

After stopping a glympse using the normal code given in the wrapper class

_glympse.stop()
_glympse = null

it stops. Great, that works too.

Now when I want to show the wizard again to create a new glympse, I have to call

start()

before I call

sendTicket()

The problem is that after I call start() and before I hit "send" in the glympse wizard, a notification shows up in android with the time remaining on the previously stopped glympse. I don't want that notification to be there.

How do I make sure the previously stopped glympse does not show up in Android's notifications when I am creating a new one?

4

1 回答 1

1

我认为问题在于术语略有偏差。

启动和停止的 Glympse 对象是 Glympse 平台(管理所有位置收集、上传等的服务)

票证对象是创建和发送的对象,以便可以在特定时间段内共享用户的位置。工单有一个 expire 方法,可用于结束工单并停止共享位置,直到创建并发送新工单。

于 2015-10-10T04:23:47.457 回答