0
當我調用buttonHandler時,即使Handler未完成,應用程序也會繼續在後臺運行,如何停止此行爲並回退到線性執行?如何停止按鈕處理程序 - Android
qrscan.setOnClickListener(new View.OnClickListener() { //the Button listener
public void onClick(View view) { //the handler
if(initiateScan(activity) == null) //first thing i expect it to execute
initiateSend(activity); //the next thing which should be executed AFTER
}
}
);