What is a correct part of an Implicit Intent for sharing data implementation?
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
…
Answer: D
Explanation:
Create the text message with a string
val sendIntent = Intent().apply { action = Intent.ACTION_SEND putExtra(Intent.EXTRA_TEXT, textMessage) type = "text/plain" }
Reference: https://developer.android.com/guide/components/fundamentals
Latest Associate Android Developer Dumps Valid Version with 107 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Subscribe
Login
0 Comments
Inline Feedbacks
View all comments