Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
06-10-2011 10:32 AM
Hi folks -
I am building a game/puzzle app that will have different games/puzzles for the user to solve. I plan to include several of the puzzles wtih the first purchase of the app and then eventually offer in-app purchases so that the user can purchase more puzzles when these APIs are fully available. Some questions:
1. how does one include a file within the .bar that is uploaded (ie the file that includes my first list of puzzles) and how does one access that file from within the app? Specifically what directory/path does it get stored in as I can't seem to find it using the different paths that are in the documentation using the loader.load command.
2. When an in-app purchase is made a new file provided, where does that get stored and what path would one use to access it?
Thanks to anyone who can point me in the right direction.
06-10-2011 10:47 AM
06-10-2011 05:09 PM
@JimmyO, it's not clear whether you know this, so I'll point it out just in case. The digital goods do not themselves include the file(s) that you want to install. See Distributing digital goods in the Payment SDK docs. That means you actually need either to include the data in your app to begin with, and purchasing the digital good merely "unlocks" it (up to you how that's implemented), or you need to distribute the data from your own server (again, your choice of implementation).
This means that it's up to you to decide where you want to store the files, assuming you'll download them after the purchase. That ties back to John's answer... the data will be either in the shared/ folder tree (inadvisable in many cases, but technically fine) or in the app's so-called appstorage area, which is under File.applicationStorageDirectory.
06-11-2011 06:14 AM
Thank you Peter and John for the information and link. I previously DID believe that the actual goods came in a download but now understand that they do NOT.