From ba0d9a11d8341cd5287465a54c7e783e78bac95e Mon Sep 17 00:00:00 2001 From: Kyuho Jo Date: Tue, 6 Oct 2015 16:29:06 +0900 Subject: [PATCH] [Guide/Tutorial][badge][Replace old API with new one] Change-Id: Ieaff0e9b072d4d0fdc0db56b47a8ff63a99f74cd Signed-off-by: Kyuho Jo --- org.tizen.guides/html/native/app/badge_n.htm | 4 ++-- org.tizen.tutorials/html/native/app_framework/badge_tutorial_n.htm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/org.tizen.guides/html/native/app/badge_n.htm b/org.tizen.guides/html/native/app/badge_n.htm index 29438c0..ef4916e 100644 --- a/org.tizen.guides/html/native/app/badge_n.htm +++ b/org.tizen.guides/html/native/app/badge_n.htm @@ -35,8 +35,8 @@

A badge is an image displayed on the application icon, which informs the user about notifications and events.

-

To create a badge, use the badge_new() method. The application that creates the badge can also update and remove it. When applications are signed with the same certificate, they can control each other's badges.

-

If an application not signed with the same certificate must be allowed manage a badge, use the badge_new() method with a writable application ID. The writable application ID enables another application to control your application to manage the badge. You can also configure your application to handle the badge itself.

+

To create a badge, use the badge_add() method. The application that creates the badge can also update and remove it. When applications are signed with the same certificate, they can control each other's badges.

+

If an application not signed with the same certificate must be allowed manage a badge, use the badge_add() method with a writable application ID. The writable application ID enables another application to control your application to manage the badge. You can also configure your application to handle the badge itself.

Figure: Badge

Badge

diff --git a/org.tizen.tutorials/html/native/app_framework/badge_tutorial_n.htm b/org.tizen.tutorials/html/native/app_framework/badge_tutorial_n.htm index 63743f0..2a53d27 100644 --- a/org.tizen.tutorials/html/native/app_framework/badge_tutorial_n.htm +++ b/org.tizen.tutorials/html/native/app_framework/badge_tutorial_n.htm @@ -86,9 +86,9 @@ static int ret = 0;

Creating a Badge

-

To create a badge for an application, call the badge_new() function. The application calling the badge_new() function has the ownership of the badge. The parameter means the application which is to be authorized to change the badge.

+

To create a badge for an application, call the badge_add() function. The parameter means the application which will have the badge. This parameter can be null when creating a badge for itself.

-ret = badge_new(TEST_PKG);
+ret = badge_add(TEST_PKG);
 if (ret != BADGE_ERROR_NONE)
 {
    // Error handling
-- 
2.7.4