我是android开发的新手。我有一项活动甚至没有发挥其onCreate()
功能。我正在使用一些“Log.d”来检查控制流,并且其中没有 Log.donCreate
在运行时被执行。我究竟做错了什么?课程的开始部分如下:
public class MainActivityap extends Activity
implements IMediaPlayerServiceClient {
private StatefulMediaPlayer mMediaPlayer;
private StreamStation mSelectedStream = new StreamStation("","http://nbc.com/154.mp3");
private MediaPlayerService mService;
private boolean mBound;
private ProgressDialog mProgressDialog;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
Log.d("msg", "msg0");
super.onCreate(savedInstanceState);
Log.d("msg", "msg1");
setContentView(R.layout.main);
Log.d("msg", "msg2");
bindToService();
Log.d("msg", "msg3");
mProgressDialog = new ProgressDialog(this);
Log.d("msg", "msg4");
initializeButtons();
setupStationPicker();
}.....