Join Lee Brimelow for an in-depth discussion in this video Initiating in-app purchases, part of Developing Applications for Amazon Kindle Devices.
Kay. So now that we've completed our …purchasing observer class let's start initiating some purchases from within our …application. So we're going to start in Game.java, and …that's the main activity where you're actually playing the game. …Now, the first thing you're going to need to do in any activity where you want to …provide In-APp purchases is in the onStart override method here. …What we need to do is create an instance of that In-App observer class.…
I'll just call it obs for short, is equal to new InAppObserver. …And remember, it's expecting the calling activity in which we can just say is …this. So now that we have that instance, now, …we need to register it as an observer with the purchasing manager. …It's going to be a static method of the PurchasingManager class and its going to …be registerObserver. And we're going to pass in that obs …property that we just created. So now, once we do this, it's now …going to go out register that observer, and when that's finished, the …onSDKAvailable call back method will actually be called in our observer class.…
The course also covers multiscreen development and testing with the Kindle Emulator, as well as actual deployment to the Kindle store.
Skill Level Intermediate
1. Preparing for Development
2. Integrating In-App Purchasing
3. Using the GameCircle API
4. Using the Amazon Maps API
5. Multiscreen Development
6. Preparing to Publish
Targeting other devices6m 51s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.