80,475
社区成员
发帖
与我相关
我的任务
分享
PendingIntent pi1 = PendingIntent.getService(AlarmActivity.this, 0, intent, 0);
我在写定时的时候,用到了这个函数,原型是
public static PendingIntent getService (Context context, int requestCode, Intent intent, int flags),
看到最后一个参数android官网给出的解释是:May be FLAG_ONE_SHOT, FLAG_NO_CREATE, FLAG_CANCEL_CURRENT, FLAG_UPDATE_CURRENT, or any of the flags as supported by Intent.fillIn() to control which unspecified parts of the intent that can be supplied when the actual send happens.但是这些参数没有0这个参数,请问大家这个参数的含义到底是什么,还有这个参数中的0是什么含义?谢谢大家!