【发布时间】:2014-06-20 19:33:28
【问题描述】:
我正在使用代码
Someactivity
Intent Service = new Intent(getBaseContext(), Service.class);
startService(Service);
try{
synchronized (populateAlbumList_Running) {
populateAlbumList_Running.wait();
}catch(InterruptedException e){
e.printStackTrace();
}
}
我正在从服务调用 Someactivity.populateAlbumList_Running.Notify()
但问题是服务甚至没有启动 我得到的应用程序永远没有响应 但如果我删除 wait() 并启动服务,它的工作正常,请帮助
【问题讨论】:
标签: android object service concurrency