Skip to main content

Ready to market your stellar app?

Samsung Developer Program is your gateway to app monetization success.

Learn More

Samsung Developer Program

Initializing the Main Activity Class

During IAP integration, you will 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?