如题
见代码
import org.apache.log4j.Logger;
import com.example.lazyboy.R;
import com.lazyboy.workflow.engine.WorkflowEngine;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class MainActivity extends Activity {
protected WorkflowEngine m_workflow_engine = null;
// 总是停在这里,总是停在这里,总是停在这里
private static Logger m_logger = Logger.getLogger(MainActivity.class);
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
private void intialization()
{
this.m_logger.info("intialiation");
m_workflow_engine = WorkflowEngine.getInstance();
m_workflow_engine.run();
}
}
------解决方案--------------------
为什么log4j,这玩意以前web开发时用的,你怎么不用android自带的log?