android入门

	class imyButtonListener implements OnClickListener{

		@Override
		public void onClick(View v) {
			Uri uri =Uri.parse("smsto:10086");
			Intent intent = new Intent(Intent.ACTION_SENDTO,uri);
			intent.putExtra("SMS_BODY", "Please input what you want to say");
			MainActivity.this.startActivity(intent);
			
		}

	}

 #调用发送短信框#

你可能感兴趣的:(android)