标签: android
在我的应用程序中,我正在进行数据库存储的后台处理。如何检查后台进程是否正在运行?使用编码
答案 0 :(得分:0)
可以使用thread.getState()检查线程状态。您将获得Thread.State枚举。
thread.getState()
Thread.State