私は Android プログラミングの初心者です。今日は SMS 送信プログラムを作成しています。このようなプログラム:
[送信] ボタンをクリックすると、結果は上記のように表示されます。
しかし、次のように、送信ボタンの下に結果を表示してもよろしいですか?
フロントページのJavaコードは次のとおりです。
public class sms extends Activity {
Button sendButton;
EditText phoneTextField;
EditText msgTextField;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.smslay);
msgTextField = (EditText) findViewById(R.id.msgTextField);
sendButton = (Button) findViewById(R.id.sendButton);
phoneTextField = (EditText) findViewById(R.id.phoneTextField);
}