note 08-android start up an sms UI

Uri uri=Uri.parse("smsto:123456");
Intent intent=new Intent(Intent.ACTION_SENDTO,uri);
intent.putExtra("sms_body","The SMS text");
startActivity(intent)

Intent.ACTION_SENDTO

uri=Uri.parse("smsto:phone number")

start up an SMS UI.

猜你喜欢

转载自julianjulian8.iteye.com/blog/1734255