Google Associate Android Developer Practice Test 1
                Question 1 / 40
            
            
            
        What is a correct part of an Implicit Intent for sharing data implementation?
                                                                     val sendIntent = Intent(this, UploadService::class.java).apply { putExtra(Intent.EXTRA_TEXT, textMessage) ...
                                                                
                                                            
                                                                     val sendIntent = Intent().apply { type = Intent.ACTION_SEND; ...
                                                                
                                                            
                                                                     val sendIntent = Intent(this, UploadService::class.java).apply { data = Uri.parse(fileUrl) ...
                                                                
                                                            
                                                                     val sendIntent = Intent().apply { action = Intent.ACTION_SEND ...
                                                                
                                                            
                                                    
                                                        Comment (0)
                                                    
                                                    
                                                    
                                                            
                                                    
                                                        
                                                            
                                                                
                                                            
                                                        
                                                    
                                                
                                        Suggested 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
        
            
        
                                        
 Restart test