Skip to main content
Samsung Developer Program

Modifying the AndroidManifest.xml File

When integrating Samsung IAP functionality, privilege and activity additions must be included as annotations in the IAP Helper project within the AndroidManifest.xml file:

  • com.sec.android.app.billing.permission.BILLING privilege in order to link to IAP functionality in Samsung Billing.
  • android.permission.INTERNET privilege because IAP uses network communication.
  • IAP Helper communicates with third-party service apps via these transparent activities:
    • com.samsung.android.sdk.iap.lib.activity.InboxActivity to request purchased items list.
    • com.samsung.android.sdk.iap.lib.activity.PaymentActivity to request payment.
    • com.samsung.android.sdk.iap.lib.activity.ItemActivity to request product items list.

To add necessary privileges and activities to the manifest:

CAUTION: Privileges and additions must NOT be altered. Copy and paste them from below or from the comments in the IAP Helper AndroidManifest.xml file in the SDK.

  1. In Android Studio 1.1.0, open the AndroidManifest.xml file.
  2. Add the following privilege code:
<uses-permission android:name="com.sec.android.app.billing.permission.BILLING"/>
<uses-permission android:name="android.permission.INTERNET"/>
  1. Add the following activity code:

CAUTION: Due to the transparency requirements, the three activities MUST be set to android:theme="@style/Theme.Empty" or these activities will conceal your service app.

 <activity
     android:name="com.samsung.android.sdk.iap.lib.activity.InboxActivity"
     android:theme="@style/Theme.Empty"
     android:configChanges="orientation|screenSize"/>
     
 <activity
     android:name="com.samsung.android.sdk.iap.lib.activity.PaymentActivity"
     android:theme="@style/Theme.Empty"
     android:configChanges="orientation|screenSize"/>
     
 <activity
     android:name="com.samsung.android.sdk.iap.lib.activity.ItemActivity"
     android:theme="@style/Theme.Empty"
     android:configChanges="orientation|screenSize"/>

 

  • Was this article helpful?