daily-story

[android] Intent로 sms보내기

btnSmsInvite.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
        Intent intent = new Intent(Intent.ACTION_VIEW);
        intent.putExtra("address", "number");
        intent.putExtra("sms_body", "sms_test");
        intent.setType("vnd.android-dir/mms-sms");
        startActivity(intent);
    }
});

카테고리의 다른 글

댓글 0