我有一個服務,發送錯誤到一個網址,這項服務在其他服務很好的工作,但當我有一個自我錯誤跌倒在非常糟糕的循環。 public class Error_Service extends Service {
Context context;
RequestPackage RP;
String Value;
G g;
Internet_Connect IC;
在我的應用程序,我們正在創建一個線程通過藍牙打印機打印。它在調試模式下工作正常,但是釋放模式會導致ANR錯誤。我從服務啓動線程。我使用下面的代碼: @Override
public void start() {
super.start();
while (!threadInitOK); // it is getting stuck here
}