Skip to main content
Samsung Developer Program

Initializing the Main Activity Class

During IAP integration, you modify your service app project in [Your main activity].xml file.

public class MainActivity extends Activity implements OnPaymentListener, OnGetItemListener
{
    private static final int    MODE = SamsungIapHelper.IAP_MODE_COMMERCIAL;
        mIapHelper = SamsungIapHelper.getInstance(this, MODE);
  • Was this article helpful?