Changes

Jump to: navigation, search
no edit summary
<hr>
 
<htmlet>androidstudio_a6</htmlet>
Figure 63-5
<htmlet>androidstudio_a6</htmlet>
Extract the button text strings to string resources named click_string and buy_string and, with the user interface layout designed, switch the Designer tool to Text mode and name the buttons clickButton and buyButton respectively. Also, set onClick properties to configure the buttons to call methods named buttonClicked and buyClick such that the completed XML layout file reads as follows:
Figure 63-7
<htmlet>androidstudio_a6</htmlet>
Keep this Browser window open for now as this key will need to be included in the application code in the next step of this tutorial.
};
</pre>
<htmlet>androidstudio_a6</htmlet>
== Releasing the IabHelper Instance ==
.
</pre>
<htmlet>androidstudio_a6</htmlet>
Before any products can be created, a release APK file for the application must first be uploaded to the developer console. In order to prepare this release APK file for the InAppBilling application, follow the steps outlined in the chapter entitled Signing and Preparing an Android Application for Release. Once the APK file has been created, select the previously registered application from the list of applications in the Google Play Developer Console and, from the resulting screen, click on the APK link in the left hand panel. When prompted, upload the release APK file to the console.
Figure 63-13
<htmlet>androidstudio_a6</htmlet>
== Resolving Problems with In-App Purchasing ==
<htmlet>androidstudio_a6</htmlet>

Navigation menu