Create Notification with BroadcastReceiver

前端 未结 3 1385
小鲜肉
小鲜肉 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:42

    You use Notification.Builder to build the notification now and the pending intent needs to be PendingIntent.getBroadcast()

提交回复
热议问题