2014-12-30 6 views
0

수신 통화를위한 수신자가 있습니다. 수신 한 통화 알림을 지우려면 어떻게해야합니까?통화 수신자에게 통화 알림이 없음

public class IncommingCallReceiver extends BroadcastReceiver 
{ 
    public void onReceive(final Context context, final Intent intent) 
    { 
     //some method 
    } 
} 

답변

1

는 알림

// Sets an ID for the notification 
    int mNotificationId = 001; 
    // Gets an instance of the NotificationManager service 
    NotificationManager mNotifyMgr = 
      (NotificationManager) getSystemService(NOTIFICATION_SERVICE); 
    // Builds the notification and issues it. 
    mNotifyMgr.notify(mNotificationId, mBuilder.build()); 

내가 무엇을 모르는 post.but에 대한 here

+0

감사를 참조를 만들 때 ID를 만들기 ID

NotificationManager notificationManager = (NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE); notificationManager.cancel(id); 

를 사용하여 알림을 취소 통화 알림 ID입니까? – Ali