Share Text, Images, Multiple Images Using Kotlin
Intent Intent object provides us many functionalities Starting another activity (eg., Login activity to MainActivity) Starting background service(eg., Download large files that run on background) Sending a Broadcast (eg., Firebase Messages to any alive activity) Intent types Explicit Intent Calling fully qualified targets like starting another activity within an app or starting a download progress by calling a service Implicit Intent It's like sharing a content or to ask another application to perform certain actions eg., opening a browser, opening images, playing a video by choosing player like MX player or vlc player or default Videos player Share Text val sendIntent = Intent() sendIntent.action = Intent.ACTION_SEND sendIntent.type = "text/plain" sendIntent.putExtra(Intent.EXTRA_TEXT, "http://g...

Comments
Post a Comment