标签: android service restart
我想知道android系统重新启动服务的时间。 我有什么方法可以得到这个时间吗?
答案 0 :(得分:-1)
中提琴。
public class MyService extends Service { private long startTime; public void onCreate() { super.onCreate(); startTime = System.currentTimeInMillis(); } }