Page 1 of 1

What is a correct part of an Implicit Intent for sharing data implementation?

Posted: Mon Aug 01, 2022 9:41 am
by answerhappygod
What is a correct part of an Implicit Intent for sharing data implementation?

A. val sendIntent = Intent(this, UploadService::class.java).apply { putExtra(Intent.EXTRA_TEXT, textMessage) ...
B. val sendIntent = Intent().apply { type = Intent.ACTION_SEND; ...
C. val sendIntent = Intent(this, UploadService::class.java).apply { data = Uri.parse(fileUrl) ...
D. val sendIntent = Intent().apply { action = Intent.ACTION_SEND ...