【发布时间】:2012-07-03 13:48:50
【问题描述】:
我现在创建了一个在后台发送位置的服务
我想在我的 ACTIVITY 中创建一个方法,它将访问 当前正在运行的服务实例并将调用其方法
说位置服务有Methode
SendLocation()
{
/// to do
}
现在在活动 A:
Service s = getCurrentRunningServiceInstance // 类似这样的
并调用它的方法
s.SendLocation();
【问题讨论】:
标签: android background-service