daily-story

[android] Intent로 sms보내기

프로그래밍/Android 2015.12.15 댓글 0 덜구
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