Create Notification with BroadcastReceiver

前端 未结 3 1387
小鲜肉
小鲜肉 2021-01-17 09:08

I tried to create a Notification with this Code:

private void setNotificationAlarm(Context context) 
{
    Intent intent = new Intent(getApplicationContext()         


        
3条回答
  •  攒了一身酷
    2021-01-17 09:31

    I think you need to use

    PendingIntent.getBroadcast (Context context, int requestCode, Intent intent, int flags)
    

    instead of getService

提交回复
热议问题