-
-
Save Arunshaik2001/36e63c2ff4e05d606ba0a343b280b10b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun addAction(context: Context,action: String): PendingIntent { | |
val intent = Intent(context, MyBroadCastReceiver::class.java) | |
intent.action = action | |
return PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment