有两个活动,A和Screen,在A活动中,我创建了一个handler,并希望将其传递到Screen活动。
Handler error_handler = new Handler() {
public void handleMessage(Message msg) {
}};
Intent loginButton_intent = new Intent(A.this, Screen.class);
loginButton_intent.putExtra("URL", URL);
loginButton_intent.putExtra("IP_Addres", dvr_login_data.IP_Addres);
loginButton_intent.("HAND", error_handler); <- but this code is error
我该如何传递处理程序?请提供简单易懂的答案。