Create a new project in Android Studio, entering InAppBilling into the Application name field and ebookfrenzy.com as the Company Domain setting before clicking on the Next button.
Create a new project in Android Studio, entering InAppBilling into the Application name field and ebookfrenzy.com as the Company Domain setting before clicking on the Next button.
−
On the form factors screen, enable the Phone and Tablet option and set the minimum SDK setting to API 19: Android 4.4 (KitKat). Continue to proceed through the screens, requesting the creation of a blank activity named InAppBillingActivity with a corresponding layout named activity_in_app_billing.
+
On the form factors screen, enable the Phone and Tablet option and set the minimum SDK setting to API 19: Android 4.4 (KitKat). Continue to proceed through the screens, requesting the creation of a blank activity named InAppBillingActivity with corresponding layout and menu resource files named activity_in_app_billing and menu_in_app_billing.
Click on Finish to initiate the project creation process.
Click on Finish to initiate the project creation process.
== Adding the IInAppBillingService.aidl File to the Project ==
== Adding the IInAppBillingService.aidl File to the Project ==
−
The IInAppBillingService.aidl file included as part of the Google Play Billing Library should now be added to the project. This file must be added such that it is contained in a package named com.android.vending.billing located in the InAppBilling -> app -> src -> main -> aidl folder of the InAppBilling project module.
+
The IInAppBillingService.aidl file included as part of the Google Play Billing Library should now be added to the project. This file must be added such that it is contained in a package named com.android.vending.billing located in the app -> aidl folder of the InAppBilling project module.