Skip to content

Instantly share code, notes, and snippets.

@Arunshaik2001
Created November 20, 2022 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Arunshaik2001/1b7879cbdcc4fc76a9b3f9af181bce3b to your computer and use it in GitHub Desktop.
Save Arunshaik2001/1b7879cbdcc4fc76a9b3f9af181bce3b to your computer and use it in GitHub Desktop.
val replyIntent = Intent(context, MyBroadCastReceiver::class.java)
replyIntent.action = "reply_action"
val replyPendingIntent: PendingIntent =
PendingIntent.getBroadcast(context,
1234,
replyIntent,
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment