-2
我不明白为什么:如何使用Android服务标志?
if((flags & (Service.START_FLAG_REDELIVERY |Service.START_FLAG_RETRY) != 0)
// 2 flags are present.
因为:
if((flags & (Service.START_FLAG_REDELIVERY |Service.START_FLAG_RETRY) != 0)
//it means that at least one of the 2 is present.
假设标志= XY:
if((flags & (Service.START_FLAG_REDELIVERY |Service.START_FLAG_RETRY) != 0)
//means that X!=0 or Y!=0 not X!=0 and Y!=0.