我正在玩Android开发,并遵循这一基本教程。我已经推出了我的第一款Android应用程序( code is in this repo )我有一个问题,它在模拟器内崩溃,无法访问堆栈跟踪或错误日志。
去做吧! “按钮:
...应用程序崩溃并重新启动:
关于可能发生的事情和/或我可以在哪里访问日志,你知道吗?
Intent from Google , 您的意图无效: Intent intent = new Intent(this, null);
Intent intent = new Intent(this, null);
Intent intent = new Intent(this, DisplayMessageActivity.class); EditText editText = (EditText) findViewById(R.id.editText); String message = editText.getText().toString(); intent.putExtra(EXTRA_MESSAGE, message); startActivity(intent);