在下面的代码中,我在 Eclipse 中遇到运行时错误。为什么编译时不显示此错误?
public class AndroidUIActivity extends Activity implements OnClickListener {
private static final int PROGRESS = 0x1;
private ProgressBar mProgress;
private int mProgressStatus = 0;
private int maxtime=0;
private Handler mHandler = new Handler();
int fileSize=0;
private MediaPlayer mp3player;
private TextView txt_Currenttime;
protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
txt_Currenttime.setText(12); /* line with error */
}
}