私は Android 用のアプリを作成しようとしています。このチュートリアルに従っています http://developer.android.com/training/basics/firstapp/starting-activity.html
部分があります
/** Called when the user clicks the Send button */
public void sendMessage(View view) {
// Do something in response to button
}
次に、このチュートリアルに従い、パラメーターを削除するまですべてが機能しましたView view
私の質問は、なぜそれを削除するたびに、関数は次のとおりです。
/** Called when the user clicks the Send button */
public void sendMessage() {
// Do something in response to button
}
アプリを実行すると、強制終了しました。
誰かが私を啓発できますか?ありがとうございました