我是开发Android应用程序的新手,我想知道在哪里放置Intents,或者在哪里发送message()方法。这是我正在谈论的http://developer.android.com/training/basics/firstapp/starting-activity.html#BuildIntent
的链接答案 0 :(得分:0)
Open the MainActivity class and add the corresponding method:
/** Called when the user clicks the Send button */
public void sendMessage(View view) {
// Do something in response to button
}
正好在教程中