2

I'm creating my own reminder app, but now I have a question about the getBroadcast method, and I can't find its answer:

To study and have an example of how to make an alarm, on the web I see that all the people make a PendingIntent in this way:

PendingIntent pendingIntent_name = PendingIntent.getBroadcast(Main_Activity.this, request_code, Intent_name, 0)

Now, here's my problem: seeing the official documentation I see that there are only these parametres:

  • FLAG_ONE_SHOT
  • FLAG_NO_CREATE
  • FLAG_CANCEL_CURRENT
  • FLAG_UPDATE_CURRENT
  • FLAG_IMMUTABLE
  • any of the flags as supported by Intent.fillIn()

I do not see "0" as a possible value of this parameter, so, does it work? If yes, what does it mean? (in the meaning of: what does it do?)

DISSENNATORE
  • 81
  • 1
  • 14

0 Answers0