当我在Android 4.0.3上使用postDelayed时,会有一些奇怪的日志消息。
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Handler handler = new Handler();
Runnable action = new Runnable(){
@Override
public void run(){
Intent intent = new Intent(TestPostdelayActivity.this,otherActivity.class);
startActivity(intent);
finish();
}
};
handler.postDelayed(action, 1000);
}
我收到了这些日志消息:
08-15 09:19:09.320: I/Process(95): Sending signal. PID: 610 SIG: 3
08-15 09:19:09.320: I/dalvikvm(610): threadid=3: reacting to signal 3
08-15 09:19:09.460: I/dalvikvm(610): Wrote stack traces to '/data/anr/traces.txt'
但实际上它没有向traces.txt写任何东西,而且应用程序运行良好。 任何潜在的问题?我需要做什么?