안드로이드 내장문자어플을 실행하고 싶은데요.
Intent it = new Intent(Intent.ACTION_VIEW); it.putExtra("sms_body", "The SMS text"); it.setType("vnd.android-dir/mms-sms");
startActivity(it);
010-1111-2222 가 자동으로 수신처로 되게끔요.
특정번호를 지정하고 싶은데 가능한가요?
private
void
sendSMS(String reciver , String content){
Uri uri = Uri.parse(
"smsto:"
+reciver);
Intent it =
new
Intent(Intent.ACTION_SENDTO, uri);
it.putExtra(
"sms_body"
, content);
}
고맙습니다. 도움많이 되었습니다.
로그인 유지
private
void
sendSMS(String reciver , String content){
Uri uri = Uri.parse(
"smsto:"
+reciver);
Intent it =
new
Intent(Intent.ACTION_SENDTO, uri);
it.putExtra(
"sms_body"
, content);
startActivity(it);
}