Viewers: in countries Watching now:
Discover how to build an Android game and distribute it in the Google Play app store, using Cocos2d-x and the Eclipse Platform. Plus, author Todd Perkins shows how to monetize your game further with income from Google Mobile ads. The course demonstrates how to install and set up your coding environment; build the game's core scenes, layers, and sprites; handle touch and accelerometer data; create classes based on a detailed game flow chart; and manage misses, wins, and scores. Last, you'll prepare your game to support Google ads and in-app purchases.
To create an in-app purchase for Amazon App Store app you'll of course first need at Amazon App Store account. You can get that by going to developer.amazon.com. Then you'll need to create an app using that add new app button and in your app you'll need to create an in-app purchase to the In-App Items area. Here you'll see I have one called Jetpack Handyman Skin. The identifier that you are going to be using in your code to reference the purchase is this one here so now is a good time to copy that and for the type I chose Entitlement that's a one time purchase that you unlock something.
Once you setup your in-app purchase, you can get the SDK to the SDK link hit Download SDK and here you'll find a getting started with in-app purchasing API which you should definitely look at if you're serious about doing in-app purchases. You can find some extra information there. Let's go over to the desktop here. In the SDK file that you download, you'll see a folder called In-App-Purchasing and folder in their called lib and there is a jar file. You can just drag that into your libs folder in your Eclipse project to add it to your project.
Remember it choose copies so it copies in your project. You are also going to need some files in the tools folder. This Jason files needs to be edited to reflect your specific In-App Purchase. I'll open that in a text editor. So here is a description of how to use it of course I'll need to uncommon everything, and when you use this you put a whole list of them like I have here, make sure you use the same SKU here and then if you have one rapid in some curly braces like that.
And then delete everything in the file that you don't need. So once you've created you're as to look something like that. So once you've created that you're going to need to copy that file into the SD Card directory of your android device. That could be in a different place for each device the one I used was a candle fire and that was actually in the root directory when I plugged it into my computer. So copy that into your SD card folder and then you're going to need to install the Amazon SDK tester app. Or I did to install that is I copy the file into my android SDK platform tools.
So we see here AmazonSDKTester.apk. The reason I copied back in there is because the adb is in there. And so I opened up a command line window, changed the directory to this platform tools directory, and I ran adb install AmazonSDKTester.apk. Now once you've installed that, you should test the app on your device just to make sure that it works. To test in-app purchases, you'll need this app running; and if you've just copied over that json file, you'll need to unmount from your computer to save that change.
So once you've done all those steps, you're ready to start writing the code necessary to add Amazon In- App Purchases to your app.
There are currently no FAQs about Building and Monetizing Game Apps for Android.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.