How to auto close RichNotification (in Samsung Accessory Library)?

How to auto close RichNotification (in Samsung Accessory Library)?

BY 22 Jun 2016 Native Application Development

안녕하십니까? 
Hello?

 

삼성 Accessory  라이브러리에서 지원하는 RichNotification 을 사용해서 안드로이드 폰에서 기어S2 로 Notification 을 보냈습니다.
I used RichNotification in Samung Accessory Library, to send Noti from Android phone to GearS2.

 

그리고 Noti 에서 아이콘을 선택하면 기어S2 에 설치된 Tizen 앱이 실행되도록 하였습니다.
When touch icon in notification, sample Tizen app is running in GearS2.

 

그런데 앱이 실행된 이후에 Noti 는 사라지지 않고 그대로 남아있습니다.
But the notification does not disappear, after sample app is loaded.

 

Noti 의 아이콘을 선택했을때 Noti 가 사라지도록 하는 방법을 알려주십시요.
How to auto close RichNotification, when touch icon in notification?

 

아래는 제가 작성한 안드로이드 코드 입니다.
Below is Android phone’s source code.

 

==============================================================
        mRichNotificationManager = new SrnRichNotificationManager(getApplicationContext());
        mRichNotificationManager.start();

        SrnRichNotification myRichNotification = new SrnRichNotification(this);
        Bitmap myAppIconBitmap = BitmapFactory.decodeResource(getResources(),
                R.mipmap.ic_launcher);
        SrnImageAsset myAppIcon = new SrnImageAsset(this, “app_icon”, myAppIconBitmap);
        myRichNotification.setIcon(myAppIcon);
        myRichNotification.setTitle(“Raptors vs. Nets”);

        SrnStandardTemplate myPrimaryTemplate = new SrnStandardTemplate(SrnStandardTemplate.HeaderSizeType.MEDIUM);
        myRichNotification.setPrimaryTemplate(myPrimaryTemplate);

        SrnRemoteLaunchAction myAction = new SrnRemoteLaunchAction(“Check In”);
        Bitmap checkInIconBitmap = BitmapFactory.decodeResource(getResources(),
                R.drawable.listen);
        SrnImageAsset checkInIcon = new SrnImageAsset(this, “checkin_icon”, checkInIconBitmap);
        myAction.setIcon(checkInIcon);

        myAction.setPackage(“org.example.multiview”);
        Bundle bundle = new Bundle();
        bundle.putString(“message”,”data from phone”);
        myAction.setExtras(bundle);

        myRichNotification.addActionWithPermissionCheck(myAction);
        myRichNotification.setAlertType(SrnRichNotification.AlertType.SOUND_AND_VIBRATION, SrnRichNotification.PopupType.NORMAL);
        mRichNotificationManager.notify(myRichNotification);
        mRichNotificationManager.stop();

Written by