'Android/Notification'에 해당되는 글 1건

Notification 생성시
Intent notificationIntent = new Intent(ACTION_SIP_CALLLOG);
PendingIntent pendingintent = PendingIntent.getActivity(MBizVoIP.mContext, 0, notificationIntent, PendingIntent.FLAG_CANCEL_CURRENT);

AndroidManifest.xml 에서 Activity에 다음과 같은 속성 추가
<intent-filter android:priority="10">
                 <action android:name="com.mbizvoip.ui.action.CALLLOG" />
</intent-filter>
ACTION_SIP_CALLLOG 라는 Action을 받을 Receiver를 생성
해당 Receiver에서 새로운 인텐트를 받게 된다.
블로그 이미지

럭셔리스카이

안드로이드 개발

,