Before 2022/Android

안드로이드 공유하기(기본 시스템)

Eljoe 2019. 7. 11. 14:15
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_TEXT, "전달할 메시지");
startActivity(Intent.createChooser(intent, "공유하기"));